mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use shared globalize
This commit is contained in:
parent
3aefabc66b
commit
ec65069323
29 changed files with 390 additions and 274 deletions
12
dashboard-ui/legacy/fnchecked.js
Normal file
12
dashboard-ui/legacy/fnchecked.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
// TODO: This needs to be deprecated, but it's used heavily
|
||||
$.fn.checked = function (value) {
|
||||
if (value === true || value === false) {
|
||||
// Set the value of the checkbox
|
||||
return $(this).each(function () {
|
||||
this.checked = value;
|
||||
});
|
||||
} else {
|
||||
// Return check state
|
||||
return this.length && this[0].checked;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue