diff options
author | Ananya Sen | 2012-07-03 13:02:06 -0700 |
---|---|---|
committer | Ananya Sen | 2012-07-03 13:02:06 -0700 |
commit | cbb39c7833994c6e1db3f5b445fbedf5c70b95cc (patch) | |
tree | bd74365dfd503bf245c1cffa779ef042ac336d31 /js/components/menu/menu-entry.reel/menu-entry.js | |
parent | fcae5717dab144c4d961b94510aed11d01568345 (diff) | |
download | ninja-cbb39c7833994c6e1db3f5b445fbedf5c70b95cc.tar.gz |
fixed IKNINJA-1877 : Clicking on a menu item should commit on mouse up and not on mouse down.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/components/menu/menu-entry.reel/menu-entry.js')
-rwxr-xr-x | js/components/menu/menu-entry.reel/menu-entry.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/js/components/menu/menu-entry.reel/menu-entry.js b/js/components/menu/menu-entry.reel/menu-entry.js index 0f5503f6..93628dec 100755 --- a/js/components/menu/menu-entry.reel/menu-entry.js +++ b/js/components/menu/menu-entry.reel/menu-entry.js | |||
@@ -78,10 +78,21 @@ exports.MenuEntry = Montage.create(Component, { | |||
78 | } | 78 | } |
79 | }, | 79 | }, |
80 | 80 | ||
81 | toggleOnMenuItemAction: { | ||
82 | value: function() { | ||
83 | // TODO: Hack! Rework this! | ||
84 | //for non menu headers only | ||
85 | this.parentComponent.ownerComponent.toggleActivation(this); | ||
86 | } | ||
87 | }, | ||
88 | |||
81 | captureMousedown: { | 89 | captureMousedown: { |
82 | value: function(event) { | 90 | value: function(event) { |
83 | // TODO: Hack! Rework this! | 91 | // TODO: Hack! Rework this! |
84 | this.parentComponent.ownerComponent.toggleActivation(this); | 92 | //for menu headers only |
93 | if(event.target.getAttribute("data-montage-id") === "topHeaderText"){ | ||
94 | this.parentComponent.ownerComponent.toggleActivation(this); | ||
95 | } | ||
85 | } | 96 | } |
86 | }, | 97 | }, |
87 | 98 | ||