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

First separation commit.

Added LICENSE, README.md, CONTRIBUTORS.md
This commit is contained in:
Erwin de Haan 2019-01-09 12:36:54 +01:00
parent 09513af31b
commit 4678528d00
657 changed files with 422 additions and 0 deletions

View file

@ -0,0 +1,6 @@
define(["jQuery"], function($) {
"use strict";
$.fn.buttonEnabled = function(enabled) {
return enabled ? this.attr("disabled", "").removeAttr("disabled") : this.attr("disabled", "disabled")
}
});

20
src/legacy/dashboard.js Normal file
View file

@ -0,0 +1,20 @@
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()
})
};

10
src/legacy/fnchecked.js Normal file
View file

@ -0,0 +1,10 @@
define(["jQuery"], function($) {
"use strict";
$.fn.checked = function(value) {
return !0 === value || !1 === value ? $(this).each(function() {
this.checked = value
}) : this.length && this[0].checked
}, $.fn.checkboxradio = function() {
return this
}
});

6
src/legacy/selectmenu.js Normal file
View file

@ -0,0 +1,6 @@
define(["jQuery"], function($) {
"use strict";
$.fn.selectmenu = function() {
return this
}
});