mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
615cc844ae
commit
b9598ffaa1
88 changed files with 366 additions and 501 deletions
15
dashboard-ui/scripts/actionsheet.js
Normal file
15
dashboard-ui/scripts/actionsheet.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
(function () {
|
||||
|
||||
function show(options) {
|
||||
|
||||
// items
|
||||
// positionTo
|
||||
// showCancel
|
||||
|
||||
}
|
||||
|
||||
window.ActionSheet = {
|
||||
show: show
|
||||
};
|
||||
|
||||
})();
|
|
@ -129,7 +129,7 @@
|
|||
}
|
||||
|
||||
if ($.browser.android && AppInfo.isNativeApp) {
|
||||
return true;
|
||||
return screen.availWidth >= 1200;
|
||||
}
|
||||
|
||||
if ($.browser.mobile) {
|
||||
|
|
|
@ -256,7 +256,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#channelItemsPage", function () {
|
||||
}).on('pagebeforeshowready', "#channelItemsPage", function () {
|
||||
|
||||
var page = this;
|
||||
var limit = LibraryBrowser.getDefaultPageSize();
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#channelsPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#channelsPage", function () {
|
||||
|
||||
LibraryBrowser.loadSavedQueryValues('channels', query);
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Sections.loadLatestChannelItems($(".items", page), Dashboard.getCurrentUserId());
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#channelsLatestPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#channelsLatestPage", function () {
|
||||
|
||||
reloadItems(this);
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#episodesPage", function () {
|
||||
}).on('pagebeforeshowready', "#episodesPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#favoritesPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#favoritesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#gameGenresPage", function () {
|
||||
}).on('pagebeforeshowready', "#gameGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -239,7 +239,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#gamesPage", function () {
|
||||
}).on('pagebeforeshowready', "#gamesPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(function ($, document) {
|
||||
|
||||
$(document).on('pageshowready', "#gamesRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#gamesRecommendedPage", function () {
|
||||
|
||||
var parentId = LibraryMenu.getTopParentId();
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#gameStudiosPage", function () {
|
||||
}).on('pagebeforeshowready', "#gameStudiosPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
// Reset form values using the last used query
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#gamesystemsPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#gamesystemsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
takeTour(page, Dashboard.getCurrentUserId());
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#indexPage", function () {
|
||||
}).on('pagebeforeshowready', "#indexPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -587,7 +587,7 @@
|
|||
});
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#itemByNameDetailPage", function () {
|
||||
}).on('pagebeforeshowready', "#itemByNameDetailPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -1627,7 +1627,7 @@
|
|||
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#itemDetailPage", function () {
|
||||
}).on('pagebeforeshowready', "#itemDetailPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -244,7 +244,7 @@
|
|||
|
||||
$(page).on('click', '.mediaItem', onListItemClick);
|
||||
|
||||
}).on('pageshowready', "#itemListPage", function () {
|
||||
}).on('pagebeforeshowready', "#itemListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
var pageSizeKey = 'pagesize_v4';
|
||||
|
||||
var defaultBackground = "#333";
|
||||
|
||||
return {
|
||||
getDefaultPageSize: function (key, defaultValue) {
|
||||
|
||||
|
@ -1214,7 +1212,6 @@
|
|||
var html = '';
|
||||
var imgUrl = null;
|
||||
var icon;
|
||||
var background = null;
|
||||
var width = null;
|
||||
var height = null;
|
||||
|
||||
|
@ -1222,6 +1219,8 @@
|
|||
|
||||
var enableImageEnhancers = options.enableImageEnhancers !== false;
|
||||
|
||||
var cssClass = "card";
|
||||
|
||||
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
|
||||
|
||||
width = posterWidth;
|
||||
|
@ -1386,7 +1385,7 @@
|
|||
if (item.Name && options.showTitle) {
|
||||
icon = 'fa-music';
|
||||
}
|
||||
background = defaultBackground;
|
||||
cssClass += " defaultBackground";
|
||||
|
||||
} else if (item.Type == "Recording" || item.Type == "Program" || item.Type == "TvChannel") {
|
||||
|
||||
|
@ -1394,28 +1393,26 @@
|
|||
icon = 'fa-folder-open';
|
||||
}
|
||||
|
||||
background = defaultBackground;
|
||||
cssClass += " defaultBackground";
|
||||
} else if (item.MediaType == "Video" || item.Type == "Season" || item.Type == "Series") {
|
||||
|
||||
if (item.Name && options.showTitle) {
|
||||
icon = 'fa-video-camera';
|
||||
}
|
||||
background = defaultBackground;
|
||||
cssClass += " defaultBackground";
|
||||
} else if (item.Type == "Person") {
|
||||
|
||||
if (item.Name && options.showTitle) {
|
||||
icon = 'fa-user';
|
||||
}
|
||||
background = defaultBackground;
|
||||
cssClass += " defaultBackground";
|
||||
} else {
|
||||
if (item.Name && options.showTitle) {
|
||||
icon = 'fa-folder-open';
|
||||
}
|
||||
background = defaultBackground;
|
||||
cssClass += " defaultBackground";
|
||||
}
|
||||
|
||||
var cssClass = "card";
|
||||
|
||||
cssClass += ' ' + options.shape + 'Card';
|
||||
|
||||
var mediaSourceCount = item.MediaSourceCount || 1;
|
||||
|
@ -1453,10 +1450,6 @@
|
|||
style += 'background-image:url(\'' + imgUrl + '\');';
|
||||
}
|
||||
|
||||
if (background) {
|
||||
style += "background-color:" + background + ";";
|
||||
}
|
||||
|
||||
var imageCssClass = 'cardImage';
|
||||
|
||||
if (icon) {
|
||||
|
@ -2129,12 +2122,15 @@
|
|||
|
||||
if (options.viewButton) {
|
||||
|
||||
//html += '<paper-button raised class="subdued notext"><iron-icon icon="view-comfy"></iron-icon></paper-button>';
|
||||
html += '<paper-button raised class="subdued notext" onclick="require([\'jqmicons\']);jQuery(\'.viewPanel\', jQuery(this).parents(\'.page\')).panel(\'toggle\');"><iron-icon icon="more-vert"></iron-icon></paper-button>';
|
||||
}
|
||||
|
||||
html += '</div>';
|
||||
|
||||
if (showControls && options.showLimit !== false) {
|
||||
|
||||
require(['jqmicons']);
|
||||
var id = "selectPageSize";
|
||||
|
||||
var pageSizes = options.pageSizes || LibraryBrowser.getDefaultPageSizeSelections();
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
Dashboard.navigate("edititemmetadata.html?channelid=" + currentItem.Id);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#liveTvChannelPage", function () {
|
||||
}).on('pagebeforeshowready', "#liveTvChannelPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#liveTvChannelsPage", function () {
|
||||
}).on('pagebeforeshowready', "#liveTvChannelsPage", function () {
|
||||
|
||||
// Can't use pagebeforeshow here or the loading popup won't center correctly
|
||||
var page = this;
|
||||
|
|
|
@ -478,7 +478,7 @@
|
|||
reloadPage(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#liveTvGuidePage", function () {
|
||||
}).on('pagebeforeshowready', "#liveTvGuidePage", function () {
|
||||
|
||||
var page = this;
|
||||
reloadPage(page);
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#liveTvItemsPage", function () {
|
||||
}).on('pagebeforeshowready', "#liveTvItemsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
deleteTimer(page, currentItem.TimerId);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#liveTvProgramPage", function () {
|
||||
}).on('pagebeforeshowready', "#liveTvProgramPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
var page = this;
|
||||
|
||||
|
||||
}).on('pageshowready', "#liveTvRecordingListPage", function () {
|
||||
}).on('pagebeforeshowready', "#liveTvRecordingListPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#liveTvRecordingsPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#liveTvRecordingsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
}).checkboxradio('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#liveTvSeriesTimersPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#liveTvSeriesTimersPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#liveTvSuggestedPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#liveTvSuggestedPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#liveTvTimersPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#liveTvTimersPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@
|
|||
throw new Error('null player');
|
||||
}
|
||||
|
||||
currentPairingId = null;
|
||||
currentPlayer = player;
|
||||
currentTargetInfo = targetInfo;
|
||||
|
||||
|
@ -745,12 +746,14 @@
|
|||
html += '<div class="players"></div>';
|
||||
|
||||
html += '<br/>';
|
||||
html += '<p><a href="nowplaying.html" data-role="button" data-icon="remote" data-transition="slideup">' + Globalize.translate('ButtonRemoteControl') + '</a></p>';
|
||||
html += '<p><a href="nowplaying.html" data-transition="slideup" class="clearLink"><paper-button raised class="block"><iron-icon icon="tablet-android"></iron-icon><span>' + Globalize.translate('ButtonRemoteControl') + '</span></paper-button></a></p>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
$(document.body).append(html);
|
||||
|
||||
require(['jqmicons']);
|
||||
|
||||
var elem = $('#playerSelectionPanel').panel({}).trigger('create').panel("open").on("panelclose", function () {
|
||||
|
||||
$(this).off("panelclose").remove();
|
||||
|
|
|
@ -37,17 +37,12 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
var addiontalButtonsHtml = user.Policy.IsAdministrator ?
|
||||
('<button class="btnNewCollection" data-mini="true" data-icon="plus" data-inline="true" data-iconpos="notext">' + Globalize.translate('ButtonNew') + '</button>') :
|
||||
'';
|
||||
|
||||
$('.listTopPaging', page).html(LibraryBrowser.getQueryPagingHtml({
|
||||
startIndex: query.StartIndex,
|
||||
limit: query.Limit,
|
||||
totalRecordCount: result.TotalRecordCount,
|
||||
viewButton: true,
|
||||
showLimit: false,
|
||||
additionalButtonsHtml: addiontalButtonsHtml
|
||||
})).trigger('create');
|
||||
|
||||
updateFilterControls(page);
|
||||
|
@ -257,7 +252,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#boxsetsPage", function () {
|
||||
}).on('pagebeforeshowready', "#boxsetsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
LibraryBrowser.saveViewSetting(getSavedQueryKey(), view);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#movieGenresPage", function () {
|
||||
}).on('pagebeforeshowready', "#movieGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#moviePeoplePage", function () {
|
||||
}).on('pagebeforeshowready', "#moviePeoplePage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#moviesPage", function () {
|
||||
}).on('pagebeforeshowready', "#moviesPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@
|
|||
|
||||
$('.recommendations', page).createCardMenus();
|
||||
|
||||
}).on('pageshowready', "#moviesRecommendedPage", function () {
|
||||
}).on('pagebeforeshowready', "#moviesRecommendedPage", function () {
|
||||
|
||||
var parentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#movieStudiosPage", function () {
|
||||
}).on('pagebeforeshowready', "#movieStudiosPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
|
||||
$('.popupTrailerReelForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
}).on('pageshowready', "#movieTrailersPage", function () {
|
||||
}).on('pagebeforeshowready', "#movieTrailersPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -190,7 +190,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#musicAlbumArtistsPage", function () {
|
||||
}).on('pagebeforeshowready', "#musicAlbumArtistsPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
|
|
@ -242,7 +242,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#musicAlbumsPage", function () {
|
||||
}).on('pagebeforeshowready', "#musicAlbumsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#musicArtistsPage", function () {
|
||||
}).on('pagebeforeshowready', "#musicArtistsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#musicGenresPage", function () {
|
||||
}).on('pagebeforeshowready', "#musicGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#musicRecommendedPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#musicRecommendedPage", function () {
|
||||
|
||||
var parentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#musicVideosPage", function () {
|
||||
}).on('pagebeforeshowready', "#musicVideosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
ApiClient.updateDisplayPreferences('home', displayPreferences, userId, 'webclient').done(function () {
|
||||
|
||||
Dashboard.alert(Globalize.translate('SettingsSaved'));
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -722,7 +722,7 @@
|
|||
$('.sendMessageForm').off('submit', NowPlayingPage.onMessageSubmit).on('submit', NowPlayingPage.onMessageSubmit);
|
||||
$('.typeTextForm').off('submit', NowPlayingPage.onSendStringSubmit).on('submit', NowPlayingPage.onSendStringSubmit);
|
||||
|
||||
}).on('pageshowready', "#nowPlayingPage", function () {
|
||||
}).on('pagebeforeshowready', "#nowPlayingPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#photosPage", function () {
|
||||
}).on('pagebeforeshowready', "#photosPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -81,8 +81,9 @@
|
|||
startIndex: query.StartIndex,
|
||||
limit: query.Limit,
|
||||
totalRecordCount: result.TotalRecordCount,
|
||||
viewButton: true,
|
||||
showLimit: false
|
||||
showLimit: false,
|
||||
updatePageSizeSetting: false
|
||||
|
||||
})).trigger('create');
|
||||
|
||||
updateFilterControls(page);
|
||||
|
@ -171,20 +172,12 @@
|
|||
}).checkboxradio('refresh');
|
||||
|
||||
$('#selectView', page).val(view).selectmenu('refresh');
|
||||
|
||||
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#playlistEditorPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('#selectPageSize', page).on('change', function () {
|
||||
query.Limit = parseInt(this.value);
|
||||
query.StartIndex = 0;
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('.btnPlay', page).on('click', function () {
|
||||
var userdata = currentItem.UserData || {};
|
||||
|
||||
|
@ -215,7 +208,7 @@
|
|||
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#playlistEditorPage", function () {
|
||||
}).on('pagebeforeshowready', "#playlistEditorPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#playlistsPage", function () {
|
||||
}).on('pagebeforeshowready', "#playlistsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -321,13 +321,11 @@
|
|||
|
||||
function handleLibraryLinkNavigations(elem) {
|
||||
|
||||
$('a.posterItem', elem).on('click', function () {
|
||||
$('a', elem).on('click', function () {
|
||||
|
||||
var textElem = $('.posterItemText span', this);
|
||||
var card = $(this).parents('.card');
|
||||
var textElem = $('.cardText', card);
|
||||
|
||||
if (!textElem.length) {
|
||||
textElem = $('.posterItemText', this);
|
||||
}
|
||||
var text = textElem.html();
|
||||
|
||||
LibraryMenu.setText(text);
|
||||
|
|
|
@ -50,7 +50,7 @@ var Dashboard = {
|
|||
|
||||
$.event.special.swipe.verticalDistanceThreshold = 40;
|
||||
$.mobile.loader.prototype.options.disabled = true;
|
||||
$.mobile.page.prototype.options.domCache = true;
|
||||
//$.mobile.page.prototype.options.domCache = true;
|
||||
|
||||
$.mobile.loadingMessage = false;
|
||||
$.mobile.loader.prototype.options.html = "";
|
||||
|
@ -1735,6 +1735,10 @@ var AppInfo = {};
|
|||
|
||||
window.ConnectionManager = new MediaBrowser.ConnectionManager(Logger, credentialProvider, AppInfo.appName, AppInfo.appVersion, AppInfo.deviceName, AppInfo.deviceId, capabilities);
|
||||
|
||||
if (getWindowUrl().toLowerCase().indexOf('wizardstart.html') != -1) {
|
||||
window.ConnectionManager.clearData();
|
||||
}
|
||||
|
||||
$(ConnectionManager).on('apiclientcreated', function (e, newApiClient) {
|
||||
|
||||
initializeApiClient(newApiClient);
|
||||
|
@ -1795,6 +1799,8 @@ var AppInfo = {};
|
|||
|
||||
if (AppInfo.isTouchPreferred) {
|
||||
elem.addClass('touch');
|
||||
} else {
|
||||
elem.addClass('pointerInput');
|
||||
}
|
||||
|
||||
if (AppInfo.cardMargin) {
|
||||
|
@ -1829,8 +1835,13 @@ var AppInfo = {};
|
|||
function onDocumentReady() {
|
||||
|
||||
// Do these now to prevent a flash of content
|
||||
if (AppInfo.isNativeApp && $.browser.safari) {
|
||||
Dashboard.importCss('themes/ios.css');
|
||||
if (AppInfo.isNativeApp) {
|
||||
if ($.browser.android) {
|
||||
Dashboard.importCss('themes/android.css');
|
||||
}
|
||||
else if ($.browser.safari) {
|
||||
Dashboard.importCss('themes/ios.css');
|
||||
}
|
||||
}
|
||||
|
||||
if ($.browser.safari && $.browser.mobile) {
|
||||
|
@ -2038,6 +2049,7 @@ var AppInfo = {};
|
|||
Dashboard.importCss('thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.icons.css');
|
||||
return {};
|
||||
});
|
||||
define("actionsheet", ["scripts/actionsheet"]);
|
||||
|
||||
//requirejs(['http://viblast.com/player/free-version/qy2fdwajo1/viblast.js']);
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#songsPage", function () {
|
||||
}).on('pagebeforeshowready', "#songsPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@
|
|||
LibraryBrowser.saveViewSetting(getSavedQueryKey(), view);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#tvGenresPage", function () {
|
||||
}).on('pagebeforeshowready', "#tvGenresPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
var page = this;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
return 'Thumb';
|
||||
}
|
||||
|
||||
$(document).on('pageshowready', "#tvNextUpPage", function () {
|
||||
$(document).on('pagebeforeshowready', "#tvNextUpPage", function () {
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#tvPeoplePage", function () {
|
||||
}).on('pagebeforeshowready', "#tvPeoplePage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -360,7 +360,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#tvShowsPage", function () {
|
||||
}).on('pagebeforeshowready', "#tvShowsPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
}).on('pageshowready', "#tvStudiosPage", function () {
|
||||
}).on('pagebeforeshowready', "#tvStudiosPage", function () {
|
||||
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue