options = '';
}
+ var mtarget = target;
+ if (this.datas.phonegap) {
+ if(target=='_unique' || target=='_new') {
+ mtarget = '_blank';
+ }
+ } else {
+ if (target == '_new') {
+ mtarget = 'fb_' + $this.fluidbook.datas.id + '_' + Math.round(Math.random() * 10000000);
+ } else if (target == '_unique') {
+ mtarget = 'fb_' + $this.fluidbook.datas.id;
+ }
+ }
+
var locationdefault = 'yes';
if (this.datas.phonegap) {
locationdefault = 'yes';
} else if (options.indexOf('location=') == -1) {
options += ',location=' + locationdefault;
}
- window.open(url, target, options);
+
+ if (this.datas.phonegap && mtarget=='_blank') {
+ options += ',zoom=yes,enableViewportScale=yes'
+ }
+ window.open(url, mtarget, options);
}
}
\ No newline at end of file
return false;
});
-
- $(document).on('click', 'a[target="_unique"]', function () {
- window.open($(this).attr('href'), 'fb_' + $this.fluidbook.datas.id, "resizable=1,scrollbars=1", true);
- return false;
- });
-
- $(document).on('click', 'a[target="_new"]', function () {
- window.open($(this).attr('href'), 'fb_' + $this.fluidbook.datas.id + '_' + Math.round(Math.random() * 10000000), "resizable=1,scrollbars=1", true);
- return false;
- });
},
initLinks: function (pageNr) {
if (pageNr == undefined) {
if ($(this).data('type') == 16 && $(this).attr('href').substr(0, 4) == 'http') {
target = '_system';
}
- if (target == '_blank' || target == '_system') {
+ if (target == '_blank' || target == '_system' || target=='_unique' || target=='_new') {
fluidbook.wopen($(this).attr('href'), target);
return false;
}