mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared dialogs
This commit is contained in:
parent
6e6017eeaf
commit
c17d97e0ba
28 changed files with 204 additions and 62 deletions
|
@ -1833,6 +1833,12 @@ var AppInfo = {};
|
|||
return viewManager;
|
||||
});
|
||||
|
||||
if (Dashboard.isRunningInCordova() && browserInfo.android) {
|
||||
define("shell", ["cordova/android/shell"], returnFirstDependency);
|
||||
} else {
|
||||
define("shell", [embyWebComponentsBowerPath + "/shell"], returnFirstDependency);
|
||||
}
|
||||
|
||||
define("sharingmanager", [embyWebComponentsBowerPath + "/sharing/sharingmanager"], returnFirstDependency);
|
||||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
|
@ -1979,7 +1985,6 @@ var AppInfo = {};
|
|||
|
||||
define("swiper", [bowerPath + "/Swiper/dist/js/swiper.min", "css!" + bowerPath + "/Swiper/dist/css/swiper.min"], returnFirstDependency);
|
||||
|
||||
define("dialogHelper", [embyWebComponentsBowerPath + "/dialoghelper/dialoghelper"], returnFirstDependency);
|
||||
define("toast", [embyWebComponentsBowerPath + "/toast/toast"], returnFirstDependency);
|
||||
define("scrollHelper", [embyWebComponentsBowerPath + "/scrollhelper"], returnFirstDependency);
|
||||
|
||||
|
@ -2009,6 +2014,12 @@ var AppInfo = {};
|
|||
return jQuery;
|
||||
});
|
||||
|
||||
define("dialogHelper", [embyWebComponentsBowerPath + "/dialoghelper/dialoghelper"], function (dialoghelper) {
|
||||
|
||||
dialoghelper.setOnOpen(onDialogOpen);
|
||||
return dialoghelper;
|
||||
});
|
||||
|
||||
// alias
|
||||
define("historyManager", [], function () {
|
||||
return Emby.Page;
|
||||
|
@ -2057,8 +2068,6 @@ var AppInfo = {};
|
|||
};
|
||||
});
|
||||
|
||||
define('dialogText', ['globalize'], getDialogText());
|
||||
|
||||
define("embyRouter", [embyWebComponentsBowerPath + '/router'], function (embyRouter) {
|
||||
|
||||
embyRouter.showLocalLogin = function (apiClient, serverId, manualLogin) {
|
||||
|
@ -2111,14 +2120,13 @@ var AppInfo = {};
|
|||
return appSettings;
|
||||
}
|
||||
|
||||
function getDialogText() {
|
||||
return function (globalize) {
|
||||
return {
|
||||
get: function (text) {
|
||||
return globalize.translate('Button' + text);
|
||||
}
|
||||
};
|
||||
};
|
||||
function onDialogOpen(dlg) {
|
||||
if (dlg.classList.contains('formDialog')) {
|
||||
if (!dlg.classList.contains('background-theme-a')) {
|
||||
dlg.classList.add('background-theme-b');
|
||||
dlg.classList.add('ui-body-b');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function initRequireWithBrowser(browser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue