aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-13 08:27:33 -0700
committerValerio Virgillito2012-06-13 08:27:33 -0700
commit5a7774f6769a7a682e21bafe0e57007668f16153 (patch)
tree1f3fdcd64c06335e62c71418333163ea0a57a417 /js/ninja.reel
parent493485c1ebc4d4034e10b47c161035409e598fcf (diff)
parent5a46f92f3127f7cc7870f125e8da2b44c2891fd0 (diff)
downloadninja-5a7774f6769a7a682e21bafe0e57007668f16153.tar.gz
Merge pull request #291 from joseeight/TempPromptUI
Adding temp prompts
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-xjs/ninja.reel/ninja.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index b57aecd2..2d43af7a 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -169,6 +169,10 @@ exports.Ninja = Montage.create(Component, {
169 this.setupGlobalHelpers(); 169 this.setupGlobalHelpers();
170 170
171 window.addEventListener("resize", this, false); 171 window.addEventListener("resize", this, false);
172 //Prompting the user to make sure data was saved before closing Ninja
173 window.onbeforeunload = function () {
174 return 'Are you sure you want to close Ninja? Any unsaved data will be lost.';
175 };
172 176
173 this.eventManager.addEventListener("selectTool", this, false); 177 this.eventManager.addEventListener("selectTool", this, false);
174 this.eventManager.addEventListener("selectSubTool", this, false); 178 this.eventManager.addEventListener("selectSubTool", this, false);