this.loader = new FluidbookLoader(this);
this.search = new FluidbookSearch(this);
this.pad = new FluidbookPad(this);
+ if (this.datas.scorm_enable) {
+ this.scorm = new FluidbookScorm(this);
+ }
this.links = new FluidbookLinks(this);
this.waiters = [];
this.viewport = new FluidbookViewport(this);
this.tooltip = new FluidbookTooltip(this);
this.audiodescription = new FluidbookAudioDescription(this);
this.sound = new FluidbookSound(this);
- if (this.datas.scorm_enable) {
- this.scorm = new FluidbookScorm(this);
- }
if (this.datas.form == 'bulle') {
this.form = new FluidbookBulleForm(this);
if (this.support.IE == 0) {
w = window.open(url, mtarget);
} else {
- $(body).append('<a id="wopen" href="' + url + '" target="' + mtarget + '"></a>');
- $("#wopen").trigger('click');
$("#wopen").remove();
+ $('body').append('<a id="wopen" href="' + url + '" target="' + mtarget + '"></a>');
+ $("#wopen").get(0).click();
+ setTimeout(function () {
+ $("#wopen").remove();
+ }, 200);
}
-
} else {
w = window.open(url, mtarget, options, replace);
}
$(document).on('click', 'a', function () {
// console.log('click link ');
// console.log($(this));
+
+ if ($(this).is('#wopen')) {
+ return true;
+ }
+
var target = $(this).attr('target');
if (!target) {
target = '_self';