mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 00:58:37 -04:00
Prevent user to update employee without selecting at least one grant
(#420)
This commit is contained in:
1 parent
f9f127e227
commit
4e9731c59b
1 file changed
+1
-1
@@ -125,7 +125,7 @@ $(document).ready(function()
|
||||
$.validator.setDefaults({ ignore: [] });
|
||||
|
||||
$.validator.addMethod("module", function (value, element) {
|
||||
var result = true;
|
||||
var result = $("#permission_list input").is(":checked");
|
||||
$(".module").each(function(index, element)
|
||||
{
|
||||
var parent = $(element).parent();
|
||||
|
||||
Reference in new issue
Block a user