projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11cd550
)
Close submenu and trigger current element on click
author
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 10 Feb 2010 06:59:37 +0000
(23:59 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 10 Feb 2010 06:59:37 +0000
(23:59 -0700)
horde/js/ContextSensitive.js
patch
|
blob
|
history
diff --git
a/horde/js/ContextSensitive.js
b/horde/js/ContextSensitive.js
index
ade1783
..
46efc56
100644
(file)
--- a/
horde/js/ContextSensitive.js
+++ b/
horde/js/ContextSensitive.js
@@
-188,12
+188,12
@@
var ContextSensitive = Class.create({
if (elt.hasClassName('contextSubmenu') &&
elt_up.readAttribute('id') != this.currentmenu()) {
this._closeMenu(this.current.indexOf(elt.readAttribute('id')));
- } else {
- base = this.baseelt;
- trigger = this.triggers.last();
- this.close();
- base.fire('ContextSensitive:click', { elt: elt, trigger: trigger });
}
+
+ base = this.baseelt;
+ trigger = this.triggers.last();
+ this.close();
+ base.fire('ContextSensitive:click', { elt: elt, trigger: trigger });
return;
}
}