replace = undefined;
}
// Open the window
- var w = window.open(url, mtarget, options, replace);
+ var w;
+ if (options == undefined && replace == undefined) {
+ 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();
+ }
+
+ } else {
+ w = window.open(url, mtarget, options, replace);
+ }
+
try {
// Attempt to focus opened windows (useful for already opened windows)
if (target == '_new' || target == '_unique') {
function FluidbookSupport(fluidbook) {
this.fluidbook = fluidbook;
this.userAgent = navigator.userAgent;
+ this.IE = 0;
+ try {
+ this.IE = navigator.userAgent.match(/(MSIE |Trident.*rv[ :])([0-9]+)/)[2];
+ }
+ catch (e) {
+ }
this.android = this.fitScreenAtZero = this.userAgent.search(/android/i) > -1 || this.userAgent.search(/galaxy/i) > -1;
this.android3 = this.android && this.userAgent.search(/android 3/i) > -1;
this.iOS = this.userAgent.search(/ipad/i) > -1 || this.userAgent.search(/iphone/i) > -1 || this.userAgent.search(/ipod/i) > -1;