diff options
author | Valerio Virgillito | 2012-06-13 13:38:09 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-13 13:38:09 -0700 |
commit | a827f2769d75848c0ba0bff03a927c1f2706322b (patch) | |
tree | dbd9ec47cd2828bfa43c6b6a69ff9e82d5e03377 /js/ninja.reel/ninja.js | |
parent | a75947d69f571d723552f926f94d195514a01cbd (diff) | |
parent | 5a7774f6769a7a682e21bafe0e57007668f16153 (diff) | |
download | ninja-a827f2769d75848c0ba0bff03a927c1f2706322b.tar.gz |
Merge branch 'refs/heads/master' into montage-v10-integration
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index c7bdfc0e..61cd2487 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -319,6 +319,10 @@ exports.Ninja = Montage.create(Component, { | |||
319 | this.setupGlobalHelpers(); | 319 | this.setupGlobalHelpers(); |
320 | 320 | ||
321 | window.addEventListener("resize", this, false); | 321 | window.addEventListener("resize", this, false); |
322 | //Prompting the user to make sure data was saved before closing Ninja | ||
323 | window.onbeforeunload = function () { | ||
324 | return 'Are you sure you want to close Ninja? Any unsaved data will be lost.'; | ||
325 | }; | ||
322 | 326 | ||
323 | this.eventManager.addEventListener("selectTool", this, false); | 327 | this.eventManager.addEventListener("selectTool", this, false); |
324 | this.eventManager.addEventListener("selectSubTool", this, false); | 328 | this.eventManager.addEventListener("selectSubTool", this, false); |