1
0
Fork 0
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:
Luke Pulverenti 2016-03-05 13:51:19 -05:00
parent 3aefabc66b
commit ec65069323
29 changed files with 390 additions and 274 deletions

View 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;
}
};