jellyfin-web/dashboard-ui/legacy/dashboard.js
2018-10-23 01:05:09 +03:00

20 lines
536 B
JavaScript

Dashboard.confirm = function(message, title, callback) {
"use strict";
require(["confirm"], function(confirm) {
confirm(message, title).then(function() {
callback(!0)
}, 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()
})
};