mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
20 lines
536 B
JavaScript
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()
|
|
})
|
|
}; |