var close = $(this).data('showclose');
- var l = $('div.link[data-id="' + $(this).data('showid') + '"]');
- $(l).append('<a href="#" class="linkshowclose ' + close + '"></a>');
- $(l).show();
- $(l).trigger('fluidbook.link.show');
- if (close !== 'none') {
- $(l).removeClass('notinteractive');
- $(l).find('img').css('pointer-events', 'none');
- }
- setTimeout(function () {
- $(l).addClass('show');
- }, 10);
+ $('div.link[data-id$="' + $(this).data('showid') + '"]').each(function () {
+ var l = this;
+ $(l).append('<a href="#" class="linkshowclose ' + close + '"></a>');
+ $(l).show();
+ $(l).trigger('fluidbook.link.show');
+ if (close !== 'none') {
+ $(l).removeClass('notinteractive');
+ $(l).find('img').css('pointer-events', 'none');
+ }
+ setTimeout(function () {
+ $(l).addClass('show');
+ }, 10);
+ });
+
return false;
});