This commit is contained in:
tianshujie
2022-07-05 09:53:43 +08:00
parent 63834e128c
commit 87160bf3a5
+2 -4
View File
@@ -42,10 +42,8 @@
var fieldList = ',' + showFields + ',';
$('#formSettingForm > .checkboxes > .checkbox-primary > input:visible').each(function()
{
var field = ',' + $(this).val() + ',';
var checked = fieldList.indexOf(field) >= 0 ? true : false;
$(this).prop('checked', checked);
var field = ',' + $(this).val() + ',';
$(this).prop('checked', fieldList.indexOf(field) >= 0);
});
}