if (mode === 'toggle') {
$.each(ids, function (k, id) {
- console.log('toggle '+id);
+ console.log('toggle ' + id);
$('div.link[data-id$="' + id + '"]').toggleClass('show');
});
return false;
$(l).addClass('forceinteractive');
$(l).append('<a href="#" class="linkshowclose ' + close + '"></a>');
}
+ $(l).find('iframe').each(function () {
+ $(this).attr('data-src', $(this).attr('src'));
+ $(this).attr('src', '');
+ });
$(l).show();
- if ($(l).find('iframe').length > 0) {
+ setTimeout(function () {
$(l).find('iframe').each(function () {
- this.src = this.src;
+ $(this).attr('src', $(this).attr('data-src'));
});
- }
+ }, 10);
+
+
$(l).trigger('fluidbook.link.show');
if (close !== 'none') {
$(l).removeClass('notinteractive');