From d0af21d80441cb7ffe3a92ed00f8dc9b90867098 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Mon, 23 Apr 2012 13:41:16 -0700 Subject: adjusting the bread crumb to work with the new template Initial container get setup in ninja now. Signed-off-by: Valerio Virgillito --- js/ninja.reel/ninja.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/ninja.reel') 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, { value: function(event) { this.currentDocument = event.detail; + if(this.currentDocument.documentRoot) { + this.application.ninja.currentSelectedContainer = this.currentDocument.documentRoot; + } else { + alert("The current document has not loaded yet"); + return; + } + this.appModel.show3dGrid = this.currentDocument.draw3DGrid; NJevent("openDocument"); } -- cgit v1.2.3