aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/main-menu-controller.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-02-24 12:08:49 -0800
committerPushkar Joshi2012-02-24 12:08:49 -0800
commit03ca7a5ed13c25faaa9100bb666e062fd15335e6 (patch)
treec51112223ceb9121cd595a60335eb2795215590f /js/controllers/main-menu-controller.js
parentfcb12cc09eb3cd3b42bd215877ba18f449275b75 (diff)
parent053fc63a2950c7a5ee4ebf98033b64d474a3c46e (diff)
downloadninja-03ca7a5ed13c25faaa9100bb666e062fd15335e6.tar.gz
Merge branch 'pentool' into brushtool
Conflicts: imports/codemirror/mode/scheme/scheme.js js/tools/BrushTool.js
Diffstat (limited to 'js/controllers/main-menu-controller.js')
-rw-r--r--js/controllers/main-menu-controller.js43
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..2b848b9f
--- /dev/null
+++ b/js/controllers/main-menu-controller.js
@@ -0,0 +1,43 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
8var Montage = require("montage/core/core").Montage,
9 Component = require("montage/ui/component").Component,
10 AboutBoxPopup = require("js/components/about-box.reel").AboutBox;
11
12exports.MainMenuController = Montage.create(Component, {
13 deserializedFromTemplate:{
14 value:function () {
15 this.eventManager.addEventListener("executeHelpFAQ", this, false);
16 this.eventManager.addEventListener("executeHelpForums", this, false);
17 this.eventManager.addEventListener("executeHelpTopics", this, false);
18 this.eventManager.addEventListener("executeHelpAbout", this, false);
19 }
20 },
21
22 // Basic help menu handling methods
23 handleExecuteHelpFAQ:{
24 value:function () {
25 window.open('http://www.tetsubo.org/go/ninjafaq');
26 }
27 },
28 handleExecuteHelpForums:{
29 value:function () {
30 window.open('http://www.tetsubo.org/go/ninjaforums');
31 }
32 },
33 handleExecuteHelpTopics:{
34 value:function () {
35 window.open('http://www.tetsubo.org/go/ninjadocs');
36 }
37 },
38 handleExecuteHelpAbout:{
39 value:function () {
40 AboutBoxPopup.show();
41 }
42 }
43});