From 93432f2fe73d1c1adcc7ba400ab66b5a9c19d6df Mon Sep 17 00:00:00 2001 From: Rolux Date: Fri, 5 Feb 2010 14:47:04 +0530 Subject: [PATCH] close parent menus on click --- build/js/ox.ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 0bb20d2..ebedd5c 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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