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

update card layouts

This commit is contained in:
Luke Pulverenti 2015-05-13 00:55:19 -04:00
parent 8f4f29888e
commit bb38230c23
46 changed files with 1086 additions and 332 deletions

View file

@ -154,7 +154,7 @@
// Need the timeout because jquery mobile will not show a popup if there's currently already one in the process of closing
setTimeout(function () {
Dashboard.hideLoadingMsg();
Dashboard.hideModalLoadingMsg();
Dashboard.alert({
message: Globalize.translate('DefaultErrorMessage')
});
@ -164,12 +164,12 @@
function acceptInvitation(page, id) {
Dashboard.showLoadingMsg();
Dashboard.showModalLoadingMsg();
// Add/Update connect info
ConnectionManager.acceptServer(id).done(function () {
Dashboard.hideLoadingMsg();
Dashboard.hideModalLoadingMsg();
loadPage(page);
}).fail(function () {
@ -180,12 +180,12 @@
function deleteServer(page, id) {
Dashboard.showLoadingMsg();
Dashboard.showModalLoadingMsg();
// Add/Update connect info
ConnectionManager.deleteServer(id).done(function () {
Dashboard.hideLoadingMsg();
Dashboard.hideModalLoadingMsg();
loadPage(page);
}).fail(function () {
@ -197,12 +197,12 @@
function rejectInvitation(page, id) {
Dashboard.showLoadingMsg();
Dashboard.showModalLoadingMsg();
// Add/Update connect info
ConnectionManager.rejectServer(id).done(function () {
Dashboard.hideLoadingMsg();
Dashboard.hideModalLoadingMsg();
loadPage(page);
}).fail(function () {
@ -372,6 +372,8 @@
Dashboard.showLoadingMsg();
Backdrops.setDefault(page);
ConnectionManager.getAvailableServers().done(function (servers) {
servers = servers.slice(0);
@ -400,7 +402,17 @@
loadInvitations(page);
}
$(document).on('pageshow', "#selectServerPage", function () {
$(document).on('pagebeforecreate', "#selectServerPage", function () {
var page = this;
if (ConnectionManager.isLoggedIntoConnect()) {
$(page).addClass('libraryPage').addClass(' noSecondaryNavPage').removeClass('standalonePage');
} else {
$(page).removeClass('libraryPage').removeClass(' noSecondaryNavPage').addClass('standalonePage');
}
}).on('pagebeforeshow', "#selectServerPage", function () {
var page = this;