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

25 lines
553 B
JavaScript
Raw Normal View History

2018-10-23 01:05:09 +03:00
Dashboard.confirm = function(message, title, callback) {
2020-05-04 12:44:12 +02:00
'use strict';
require(['confirm'], function(confirm) {
2018-10-23 01:05:09 +03:00
confirm(message, title).then(function() {
callback(!0);
2020-04-06 23:44:38 +02:00
}).catch(function() {
callback(!1);
});
});
2020-04-06 23:44:38 +02:00
};
Dashboard.showLoadingMsg = function() {
2020-05-04 12:44:12 +02:00
'use strict';
require(['loading'], function(loading) {
loading.show();
});
2020-04-06 23:44:38 +02:00
};
Dashboard.hideLoadingMsg = function() {
2020-05-04 12:44:12 +02:00
'use strict';
require(['loading'], function(loading) {
loading.hide();
});
};