aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-xjs/ninja.reel/ninja.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 2fedd71d..d2d45410 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -269,6 +269,13 @@ exports.Ninja = Montage.create(Component, {
269 value: function(event) { 269 value: function(event) {
270 this.currentDocument = event.detail; 270 this.currentDocument = event.detail;
271 271
272 if(this.currentDocument.documentRoot) {
273 this.application.ninja.currentSelectedContainer = this.currentDocument.documentRoot;
274 } else {
275 alert("The current document has not loaded yet");
276 return;
277 }
278
272 this.appModel.show3dGrid = this.currentDocument.draw3DGrid; 279 this.appModel.show3dGrid = this.currentDocument.draw3DGrid;
273 NJevent("openDocument"); 280 NJevent("openDocument");
274 } 281 }