* Finish task #73470.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
$(function()
|
||||
{
|
||||
$("input[name^='module']").change(function()
|
||||
{
|
||||
const name = $(this).attr('name');
|
||||
if($(this).prop('checked'))
|
||||
{
|
||||
$("input[name='" + name + "'][type=hidden]").val('1').attr('disabled', 'disabled');
|
||||
}
|
||||
else
|
||||
{
|
||||
$("input[name='" + name + "'][type=hidden]").val('0').attr('disabled', false);
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user