aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
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 38f5efcf..f0f8b46d 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -184,6 +184,10 @@ exports.Ninja = Montage.create(Component, {
184 this.setupGlobalHelpers(); 184 this.setupGlobalHelpers();
185 185
186 window.addEventListener("resize", this, false); 186 window.addEventListener("resize", this, false);
187 //Prompting the user to make sure data was saved before closing Ninja
188 window.onbeforeunload = function () {
189 return 'Are you sure you want to close Ninja? Any unsaved data will be lost.';
190 };
187 191
188 this.eventManager.addEventListener("selectTool", this, false); 192 this.eventManager.addEventListener("selectTool", this, false);
189 this.eventManager.addEventListener("selectSubTool", this, false); 193 this.eventManager.addEventListener("selectSubTool", this, false);