This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/*Kreta switch button helper
Ez a function állítja a kreate switch button mogotti bindolt checkboxot.
*/
var SwitchButtonHelper = (function () {
var switchButtonHelper = function () {};
switchButtonHelper.switchButtonChange = function switchButtonChange(
fieldnameId,
hiddenNameId
) {
if ($('#' + fieldnameId).prop('disabled') == true) {
return;
}
if ($('#' + fieldnameId).is(':checked')) {
$('#' + fieldnameId).prop('checked', false);
$('#' + fieldnameId).val(false);
$('#' + hiddenNameId).val(false);
} else {
$('#' + fieldnameId).prop('checked', true);
$('#' + fieldnameId).val(true);
$('#' + hiddenNameId).val(true);
}
};
return switchButtonHelper;
})();