mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
migrate legacy dashboard functions to main object
This commit is contained in:
parent
10aad88956
commit
11528d1a93
2 changed files with 22 additions and 25 deletions
|
@ -1,24 +0,0 @@
|
|||
Dashboard.confirm = function(message, title, callback) {
|
||||
'use strict';
|
||||
require(['confirm'], function(confirm) {
|
||||
confirm(message, title).then(function() {
|
||||
callback(!0);
|
||||
}).catch(function() {
|
||||
callback(!1);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Dashboard.showLoadingMsg = function() {
|
||||
'use strict';
|
||||
require(['loading'], function(loading) {
|
||||
loading.show();
|
||||
});
|
||||
};
|
||||
|
||||
Dashboard.hideLoadingMsg = function() {
|
||||
'use strict';
|
||||
require(['loading'], function(loading) {
|
||||
loading.hide();
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue