mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add ie delay
This commit is contained in:
parent
f935d3bbee
commit
6940dc2499
2 changed files with 20 additions and 5 deletions
|
@ -24,6 +24,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
appStorage.setItem("ieswitchtoedge", expectedValue);
|
appStorage.setItem("ieswitchtoedge", expectedValue);
|
||||||
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3179,11 +3179,24 @@ $.widget( "mobile.page", {
|
||||||
}, from );
|
}, from );
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO deprecate prevPage in favor of previous
|
// TODO deprecate prevPage in favor of previous
|
||||||
this._triggerWithDeprecated( prefix + "show", {
|
if (!prefix && $.browser.msie) {
|
||||||
prevPage: from || $( "" ),
|
|
||||||
toPage: to
|
// Add a delay for IE because it seems to be having issues with web components
|
||||||
}, to );
|
var curr = this;
|
||||||
|
setTimeout(function() {
|
||||||
|
curr._triggerWithDeprecated(prefix + "show", {
|
||||||
|
prevPage: from || $(""),
|
||||||
|
toPage: to
|
||||||
|
}, to);
|
||||||
|
}, 50);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this._triggerWithDeprecated(prefix + "show", {
|
||||||
|
prevPage: from || $(""),
|
||||||
|
toPage: to
|
||||||
|
}, to);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO make private once change has been defined in the widget
|
// TODO make private once change has been defined in the widget
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue