mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add fetch timeout
This commit is contained in:
parent
7c3fa06651
commit
ba5afc0ae2
14 changed files with 98 additions and 41 deletions
|
@ -334,24 +334,24 @@
|
|||
|
||||
function updatePageStyle(page) {
|
||||
|
||||
if (ConnectionManager.isLoggedIntoConnect()) {
|
||||
if (getParameterByName('showuser') == '1') {
|
||||
$(page).addClass('libraryPage').addClass('noSecondaryNavPage').removeClass('standalonePage');
|
||||
} else {
|
||||
$(page).removeClass('libraryPage').removeClass('noSecondaryNavPage').addClass('standalonePage');
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('pageinit pagebeforeshow', "#selectServerPage", function () {
|
||||
pageIdOn('pagebeforeshow', "selectServerPage", function () {
|
||||
|
||||
var page = this;
|
||||
updatePageStyle(page);
|
||||
});
|
||||
|
||||
}).on('pageshow', "#selectServerPage", function () {
|
||||
pageIdOn('pageshow', "selectServerPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
loadPage(page);
|
||||
|
||||
});
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue