diff options
author | John Mayhew | 2012-02-10 16:00:35 -0800 |
---|---|---|
committer | John Mayhew | 2012-02-10 16:00:35 -0800 |
commit | cde1dd9a9156b9682fdf85ce2cd4acdd94124c37 (patch) | |
tree | 0458f783788612564bf3be78f54913bfe9fe77f4 /js/controllers | |
parent | 99100ee4bc5bdaf081366c79de3caff2bf1bd669 (diff) | |
download | ninja-cde1dd9a9156b9682fdf85ce2cd4acdd94124c37.tar.gz |
-Changed the capitalization of all main top level menus from all caps
-Added new main-menu-controller to be the default generic handler for menu item calls that do not need to call to a specific controller
-Removed the test menu item
-Finalized the help submenu items and hooked them up to the main-menu-controller
Diffstat (limited to 'js/controllers')
-rw-r--r-- | js/controllers/main-menu-controller.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/js/controllers/main-menu-controller.js b/js/controllers/main-menu-controller.js new file mode 100644 index 00000000..5e126617 --- /dev/null +++ b/js/controllers/main-menu-controller.js | |||
@@ -0,0 +1,43 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | |||
8 | var Montage = require("montage/core/core").Montage, | ||
9 | Component = require("montage/ui/component").Component; | ||
10 | |||
11 | exports.MainMenuController = Montage.create(Component, { | ||
12 | deserializedFromTemplate:{ | ||
13 | value:function () { | ||
14 | this.eventManager.addEventListener("executeHelpFAQ", this, false); | ||
15 | this.eventManager.addEventListener("executeHelpForums", this, false); | ||
16 | this.eventManager.addEventListener("executeHelpTopics", this, false); | ||
17 | this.eventManager.addEventListener("executeHelpAbout", this, false); | ||
18 | } | ||
19 | }, | ||
20 | |||
21 | // Basic help menu handling methods | ||
22 | handleExecuteHelpFAQ:{ | ||
23 | value:function () { | ||
24 | window.open('http://www.tetsubo.org/go/ninjafaq'); | ||
25 | } | ||
26 | }, | ||
27 | handleExecuteHelpForums:{ | ||
28 | value:function () { | ||
29 | window.open('http://www.tetsubo.org/go/ninjaforums'); | ||
30 | } | ||
31 | }, | ||
32 | handleExecuteHelpTopics:{ | ||
33 | value:function () { | ||
34 | window.open('http://www.tetsubo.org/go/ninjadocs'); | ||
35 | } | ||
36 | }, | ||
37 | handleExecuteHelpAbout:{ | ||
38 | value:function () { | ||
39 | // TODO | ||
40 | console.log("Pull up the about popup"); | ||
41 | } | ||
42 | } | ||
43 | }); | ||