aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/document-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/document-controller.js')
-rwxr-xr-xjs/controllers/document-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index d5d0cf42..e221df68 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -339,7 +339,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
339 // Event Detail: Contains the current ActiveDocument 339 // Event Detail: Contains the current ActiveDocument
340 _onOpenDocument: { 340 _onOpenDocument: {
341 value: function(doc){ 341 value: function(doc){
342 //var data = DocumentManager.activeDocument; 342 this.application.ninja.currentDocument = doc;
343 this._hideCurrentDocument(); 343 this._hideCurrentDocument();
344 this.application.ninja.stage.stageView.hideOtherDocuments(doc.uuid); 344 this.application.ninja.stage.stageView.hideOtherDocuments(doc.uuid);
345 345
@@ -423,7 +423,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
423 value: function() { 423 value: function() {
424 if(this.activeDocument) { 424 if(this.activeDocument) {
425 if(this.activeDocument.currentView === "design"){ 425 if(this.activeDocument.currentView === "design"){
426 this.application.ninja.stage.saveScroll(); 426 this.activeDocument.saveAppState();
427 this.activeDocument.container.parentNode.style["display"] = "none"; 427 this.activeDocument.container.parentNode.style["display"] = "none";
428 this.application.ninja.stage.hideCanvas(true); 428 this.application.ninja.stage.hideCanvas(true);
429 this.application.ninja.stage.stageView.hideRulers(); 429 this.application.ninja.stage.stageView.hideRulers();
@@ -440,7 +440,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
440 this.activeDocument.container.style["display"] = "block"; 440 this.activeDocument.container.style["display"] = "block";
441 if(this.activeDocument.currentView === "design"){ 441 if(this.activeDocument.currentView === "design"){
442 this.activeDocument.container.parentNode.style["display"] = "block"; 442 this.activeDocument.container.parentNode.style["display"] = "block";
443 this.application.ninja.stage.restoreScroll(); 443 this.activeDocument.restoreAppState();
444 this.application.ninja.stage.hideCanvas(false); 444 this.application.ninja.stage.hideCanvas(false);
445 this.application.ninja.stage.stageView.showRulers(); 445 this.application.ninja.stage.stageView.showRulers();
446 }else{ 446 }else{