1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update shared collection editor

This commit is contained in:
Luke Pulverenti 2016-05-22 00:17:28 -04:00
parent 69fad5e57d
commit dcb6b103ec
10 changed files with 133 additions and 44 deletions

View file

@ -2,6 +2,18 @@
var globalOnOpenCallback;
function enableAnimation() {
if (browser.animate) {
return true;
}
if (browser.mobile || browser.tv) {
return false;
}
return true;
}
function dialogHashHandler(dlg, hash, resolve) {
var self = this;
@ -150,7 +162,7 @@
// Without this, seeing some script errors in Firefox
// Also for some reason it won't auto-focus without a delay here, still investigating that
var delay = browser.animate ? 0 : 300;
var delay = enableAnimation() ? 300 : 0;
setTimeout(function () {
focusManager.autoFocus(dlg);
@ -409,7 +421,7 @@
};
// too buggy in IE, not even worth it
if (!browser.animate) {
if (!enableAnimation()) {
dlg.animationConfig = null;
dlg.entryAnimation = null;
dlg.exitAnimation = null;