diff options
Diffstat (limited to 'js/controllers/document-controller.js')
-rwxr-xr-x | js/controllers/document-controller.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 4be0767a..c6bf4c6b 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -427,10 +427,6 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
427 | 427 | ||
428 | closeDocument: { | 428 | closeDocument: { |
429 | value: function(id) { | 429 | value: function(id) { |
430 | if(this.activeDocument.needsSave === true){ | ||
431 | //if file dirty then alert user to save | ||
432 | } | ||
433 | |||
434 | var doc = this._findDocumentByUUID(id); | 430 | var doc = this._findDocumentByUUID(id); |
435 | 431 | ||
436 | var closeDocumentIndex = this._findIndexByUUID(id); | 432 | var closeDocumentIndex = this._findIndexByUUID(id); |
@@ -483,11 +479,16 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
483 | 479 | ||
484 | if(!this.webTemplate) { | 480 | if(!this.webTemplate) { |
485 | this._showCurrentDocument(); | 481 | this._showCurrentDocument(); |
482 | } else { | ||
483 | this.application.ninja.stage.stageView.showRulers(); | ||
486 | } | 484 | } |
487 | 485 | ||
488 | this.webTemplate = false; | 486 | this.webTemplate = false; |
489 | 487 | ||
490 | NJevent("onOpenDocument", doc); | 488 | NJevent("onOpenDocument", doc); |
489 | |||
490 | this.application.ninja.stage.stageView.showCodeViewBar(false); | ||
491 | this.application.ninja.stage.stageView.restoreAllPanels(); | ||
491 | } | 492 | } |
492 | }, | 493 | }, |
493 | 494 | ||