mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fixed problem with last commit
This commit is contained in:
parent
9566b032cf
commit
7a291d01e8
@ -31,11 +31,11 @@ function egwMenuImpl(_structure)
|
||||
self.dhtmlxmenu.setContextMenuHideAllMode(false);
|
||||
}
|
||||
|
||||
elem.onClick(elem);
|
||||
var res = elem.onClick(elem);
|
||||
|
||||
if (elem.checkbox)
|
||||
if (elem.checkbox && (res === false || res === true))
|
||||
{
|
||||
var checked = elem.checked;
|
||||
var checked = res;
|
||||
if (elem.groupIndex != 0)
|
||||
{
|
||||
self.dhtmlxmenu.setRadioChecked(id, checked);
|
||||
|
@ -349,8 +349,8 @@
|
||||
"checkbox": true,
|
||||
"checked": false,
|
||||
"caption": "Test2",
|
||||
"onExecute": function() {
|
||||
return "checkbox:disable";
|
||||
"onExecute": function(_action) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user