aboutsummaryrefslogtreecommitdiff
path: root/js/components/menu/menu-entry.reel/menu-entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/menu/menu-entry.reel/menu-entry.js')
-rwxr-xr-xjs/components/menu/menu-entry.reel/menu-entry.js13
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