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 3a77ed5f..6f7d098f 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -335,7 +335,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
335 // Event Detail: Contains the current ActiveDocument 335 // Event Detail: Contains the current ActiveDocument
336 _onOpenDocument: { 336 _onOpenDocument: {
337 value: function(doc){ 337 value: function(doc){
338 //var data = DocumentManager.activeDocument; 338 this.application.ninja.currentDocument = doc;
339 this._hideCurrentDocument(); 339 this._hideCurrentDocument();
340 this.application.ninja.stage.stageView.hideOtherDocuments(doc.uuid); 340 this.application.ninja.stage.stageView.hideOtherDocuments(doc.uuid);
341 341
@@ -419,7 +419,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
419 value: function() { 419 value: function() {
420 if(this.activeDocument) { 420 if(this.activeDocument) {
421 if(this.activeDocument.currentView === "design"){ 421 if(this.activeDocument.currentView === "design"){
422 this.application.ninja.stage.saveScroll(); 422 this.activeDocument.saveAppState();
423 this.activeDocument.container.parentNode.style["display"] = "none"; 423 this.activeDocument.container.parentNode.style["display"] = "none";
424 this.application.ninja.stage.hideCanvas(true); 424 this.application.ninja.stage.hideCanvas(true);
425 this.application.ninja.stage.stageView.hideRulers(); 425 this.application.ninja.stage.stageView.hideRulers();
@@ -436,7 +436,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
436 this.activeDocument.container.style["display"] = "block"; 436 this.activeDocument.container.style["display"] = "block";
437 if(this.activeDocument.currentView === "design"){ 437 if(this.activeDocument.currentView === "design"){
438 this.activeDocument.container.parentNode.style["display"] = "block"; 438 this.activeDocument.container.parentNode.style["display"] = "block";
439 this.application.ninja.stage.restoreScroll(); 439 this.activeDocument.restoreAppState();
440 this.application.ninja.stage.hideCanvas(false); 440 this.application.ninja.stage.hideCanvas(false);
441 this.application.ninja.stage.stageView.showRulers(); 441 this.application.ninja.stage.stageView.showRulers();
442 }else{ 442 }else{