2016-08-20 14:34:30 -04:00
|
|
|
|
define(['jQuery'], function ($) {
|
2016-10-23 01:11:46 -04:00
|
|
|
|
'use strict';
|
2016-08-20 14:34:30 -04:00
|
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
}
|
|
|
|
|
};
|
2016-09-11 17:02:32 -04:00
|
|
|
|
|
|
|
|
|
$.fn.checkboxradio = function () {
|
|
|
|
|
return this;
|
|
|
|
|
};
|
2016-08-20 14:34:30 -04:00
|
|
|
|
});
|