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:
parent
09513af31b
commit
4678528d00
657 changed files with 422 additions and 0 deletions
6
src/legacy/buttonenabled.js
Normal file
6
src/legacy/buttonenabled.js
Normal 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
20
src/legacy/dashboard.js
Normal 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
10
src/legacy/fnchecked.js
Normal 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
6
src/legacy/selectmenu.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
define(["jQuery"], function($) {
|
||||
"use strict";
|
||||
$.fn.selectmenu = function() {
|
||||
return this
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue