diff options
Diffstat (limited to 'js/controllers/document-controller.js')
-rwxr-xr-x | js/controllers/document-controller.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 48e33267..f323ed99 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -321,7 +321,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
321 | // Event Detail: Contains the current ActiveDocument | 321 | // Event Detail: Contains the current ActiveDocument |
322 | _onOpenDocument: { | 322 | _onOpenDocument: { |
323 | value: function(doc){ | 323 | value: function(doc){ |
324 | //var data = DocumentManager.activeDocument; | 324 | this.application.ninja.currentDocument = doc; |
325 | this._hideCurrentDocument(); | 325 | this._hideCurrentDocument(); |
326 | this.application.ninja.stage.stageView.hideOtherDocuments(doc.uuid); | 326 | this.application.ninja.stage.stageView.hideOtherDocuments(doc.uuid); |
327 | 327 | ||
@@ -405,7 +405,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
405 | value: function() { | 405 | value: function() { |
406 | if(this.activeDocument) { | 406 | if(this.activeDocument) { |
407 | if(this.activeDocument.currentView === "design"){ | 407 | if(this.activeDocument.currentView === "design"){ |
408 | this.application.ninja.stage.saveScroll(); | 408 | this.activeDocument.saveAppState(); |
409 | this.activeDocument.container.parentNode.style["display"] = "none"; | 409 | this.activeDocument.container.parentNode.style["display"] = "none"; |
410 | this.application.ninja.stage.hideCanvas(true); | 410 | this.application.ninja.stage.hideCanvas(true); |
411 | this.application.ninja.stage.stageView.hideRulers(); | 411 | this.application.ninja.stage.stageView.hideRulers(); |
@@ -422,7 +422,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
422 | this.activeDocument.container.style["display"] = "block"; | 422 | this.activeDocument.container.style["display"] = "block"; |
423 | if(this.activeDocument.currentView === "design"){ | 423 | if(this.activeDocument.currentView === "design"){ |
424 | this.activeDocument.container.parentNode.style["display"] = "block"; | 424 | this.activeDocument.container.parentNode.style["display"] = "block"; |
425 | this.application.ninja.stage.restoreScroll(); | 425 | this.activeDocument.restoreAppState(); |
426 | this.application.ninja.stage.hideCanvas(false); | 426 | this.application.ninja.stage.hideCanvas(false); |
427 | this.application.ninja.stage.stageView.showRulers(); | 427 | this.application.ninja.stage.stageView.showRulers(); |
428 | }else{ | 428 | }else{ |