diff options
author | Valerio Virgillito | 2012-04-23 13:41:16 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-23 13:41:16 -0700 |
commit | d0af21d80441cb7ffe3a92ed00f8dc9b90867098 (patch) | |
tree | 9d40ce988131c4c15340e57c6b542785ccd15dae /js/ninja.reel | |
parent | 3dfd75a1d7948ef369188e1ca23c0f044c0d17a1 (diff) | |
download | ninja-d0af21d80441cb7ffe3a92ed00f8dc9b90867098.tar.gz |
adjusting the bread crumb to work with the new template
Initial container get setup in ninja now.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-x | js/ninja.reel/ninja.js | 7 |
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 | } |