jellyfin-web/dashboard-ui/legacy/fnchecked.js
Luke Pulverenti 88d6c63263 use strict
2016-10-23 01:11:46 -04:00

20 lines
542 B
JavaScript

define(['jQuery'], function ($) {
'use strict';
// 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;
}
};
$.fn.checkboxradio = function () {
return this;
};
});