1
0
Fork 0
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:
Luke Pulverenti 2015-10-25 14:16:36 -04:00
parent f935d3bbee
commit 6940dc2499
2 changed files with 20 additions and 5 deletions

View file

@ -24,6 +24,8 @@
});
appStorage.setItem("ieswitchtoedge", expectedValue);
} else {
}
}

View file

@ -3180,10 +3180,23 @@ $.widget( "mobile.page", {
}
// TODO deprecate prevPage in favor of previous
if (!prefix && $.browser.msie) {
// Add a delay for IE because it seems to be having issues with web components
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