close parent menus on click

This commit is contained in:
Rolux 2010-02-05 14:47:04 +05:30
parent ba1eb02047
commit fa6948dcf2

View file

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