close parent menus on click

This commit is contained in:
Rolux 2010-02-05 14:47:04 +05:30
parent c11108bded
commit 93432f2fe7

View File

@ -2138,6 +2138,9 @@ requires
function click() {
if (!that.hasClass("OxDisabled") && !self.options.items.length) {
self.options.menu.hideMenu();
if (self.options.menu.options("parent")) {
self.options.menu.options("parent").hideMenu();
}
if (self.options.checked !== null && (!self.options.group || !self.options.checked)) {
that.options({
checked: !self.options.checked