init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
27
KretaWeb/Scripts/KendoHelper/KretaCheckBoxHelper.js
Normal file
27
KretaWeb/Scripts/KendoHelper/KretaCheckBoxHelper.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
var KretaCheckBoxHelper = (function () {
|
||||
var kretaCheckBoxHelper = function () {};
|
||||
|
||||
kretaCheckBoxHelper.getValue = function (checkBoxId) {
|
||||
var result = $('#' + checkBoxId).is(':checked');
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
kretaCheckBoxHelper.setValue = function (checkBoxId, value) {
|
||||
$('#' + checkBoxId).prop('checked', value);
|
||||
};
|
||||
|
||||
kretaCheckBoxHelper.setObjectValue = function (checkBox, value) {
|
||||
checkBox.prop('checked', value);
|
||||
};
|
||||
|
||||
kretaCheckBoxHelper.enable = function (checkBoxId) {
|
||||
$('#' + checkBoxId).prop('disabled', false);
|
||||
};
|
||||
|
||||
kretaCheckBoxHelper.disable = function (checkBoxId) {
|
||||
$('#' + checkBoxId).prop('disabled', true);
|
||||
};
|
||||
|
||||
return kretaCheckBoxHelper;
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue