mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
continue jquery removal
This commit is contained in:
parent
75a40a8dbb
commit
31dc3c06e1
14 changed files with 352 additions and 375 deletions
|
@ -617,6 +617,11 @@
|
|||
return getParameterByName('topParentId') || null;
|
||||
}
|
||||
|
||||
function getNavigateDelay() {
|
||||
// On mobile devices don't navigate until after the closing animation has completed or it may stutter
|
||||
return browserInfo.mobile ? 320 : 200;;
|
||||
}
|
||||
|
||||
window.LibraryMenu = {
|
||||
getTopParentId: getTopParentId,
|
||||
|
||||
|
@ -632,8 +637,6 @@
|
|||
setTimeout(function () {
|
||||
closeMainDrawer();
|
||||
|
||||
// On mobile devices don't navigate until after the closing animation has completed or it may stutter
|
||||
var delay = browserInfo.mobile ? 350 : 200;
|
||||
|
||||
setTimeout(function () {
|
||||
if (action) {
|
||||
|
@ -641,7 +644,7 @@
|
|||
} else {
|
||||
Dashboard.navigate(link.href);
|
||||
}
|
||||
}, delay);
|
||||
}, getNavigateDelay());
|
||||
|
||||
}, 50);
|
||||
}
|
||||
|
@ -657,12 +660,9 @@
|
|||
|
||||
closeMainDrawer();
|
||||
|
||||
// On mobile devices don't navigate until after the closing animation has completed or it may stutter
|
||||
var delay = browserInfo.mobile ? 350 : 200;
|
||||
|
||||
setTimeout(function () {
|
||||
Dashboard.logout();
|
||||
}, delay);
|
||||
}, getNavigateDelay());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue