menu now automatically updates checked state

This commit is contained in:
Andreas Stöckel 2011-04-17 17:46:09 +00:00
parent 7ae2588e84
commit 9566b032cf

View File

@ -31,22 +31,11 @@ function egwMenuImpl(_structure)
self.dhtmlxmenu.setContextMenuHideAllMode(false); self.dhtmlxmenu.setContextMenuHideAllMode(false);
} }
var res = elem.onClick(elem); elem.onClick(elem);
if (elem.checkbox) if (elem.checkbox)
{ {
var checked = null; var checked = elem.checked;
if (res == "checkbox:disable")
{
checked = false;
}
if (res == "checkbox:enable")
{
checked = true;
}
if (checked != null)
{
if (elem.groupIndex != 0) if (elem.groupIndex != 0)
{ {
self.dhtmlxmenu.setRadioChecked(id, checked); self.dhtmlxmenu.setRadioChecked(id, checked);
@ -58,7 +47,6 @@ function egwMenuImpl(_structure)
} }
} }
} }
}
}); });
//Attach the radiobutton click handler //Attach the radiobutton click handler