fixed problem with last commit

This commit is contained in:
Andreas Stöckel 2011-04-17 17:51:50 +00:00
parent 9566b032cf
commit 7a291d01e8
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -349,8 +349,8 @@
"checkbox": true,
"checked": false,
"caption": "Test2",
"onExecute": function() {
return "checkbox:disable";
"onExecute": function(_action) {
return false;
}
}
]