diff options
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 0b4fd14d..3659f1f8 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -296,7 +296,7 @@ exports.Ninja = Montage.create(Component, { | |||
296 | } | 296 | } |
297 | }, | 297 | }, |
298 | 298 | ||
299 | handleOnOpenDocument: { | 299 | openDocument: { |
300 | value: function(doc) { | 300 | value: function(doc) { |
301 | 301 | ||
302 | 302 | ||
@@ -306,25 +306,18 @@ exports.Ninja = Montage.create(Component, { | |||
306 | // TODO: Remove this when integrating the next montage | 306 | // TODO: Remove this when integrating the next montage |
307 | this.documentList.selectedObjects = [doc]; | 307 | this.documentList.selectedObjects = [doc]; |
308 | 308 | ||
309 | // TODO: Find a better place for this | ||
310 | doc.model.currentView.show(); | ||
311 | |||
312 | // TODO: Bind directly to the model of the document in components instead of this property | 309 | // TODO: Bind directly to the model of the document in components instead of this property |
313 | this.currentSelectedContainer = doc.model.documentRoot; | 310 | this.currentSelectedContainer = doc.model.documentRoot; |
314 | 311 | ||
315 | /* | 312 | // if(this.currentDocument.model.documentRoot) { |
316 | this.currentDocument = event.detail; | 313 | // this.currentSelectedContainer = this.currentDocument.model.documentRoot; |
317 | 314 | // } else { | |
318 | if(this.currentDocument.model.documentRoot) { | 315 | // alert("The current document has not loaded yet"); |
319 | this.currentSelectedContainer = this.currentDocument.model.documentRoot; | 316 | // return; |
320 | } else { | 317 | // } |
321 | alert("The current document has not loaded yet"); | ||
322 | return; | ||
323 | } | ||
324 | 318 | ||
325 | this.appModel.show3dGrid = this.currentDocument.draw3DGrid; | 319 | // this.appModel.show3dGrid = this.currentDocument.draw3DGrid; |
326 | NJevent("openDocument"); | 320 | // NJevent("openDocument"); |
327 | */ | ||
328 | 321 | ||
329 | } | 322 | } |
330 | }, | 323 | }, |