aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 86b1d057..814a30e1 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -356,7 +356,8 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
356 console.log("URI is: ", uri); 356 console.log("URI is: ", uri);
357 } 357 }
358 }, 358 },
359 359
360 //todo: remove this funciton as it is not used
360 textDocumentOpened: { 361 textDocumentOpened: {
361 value: function(doc) { 362 value: function(doc) {
362 363
@@ -413,6 +414,11 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
413 414
414 this.application.ninja.stage.hideCanvas(true); 415 this.application.ninja.stage.hideCanvas(true);
415 416
417 if(this._documents.length === 0){
418 document.getElementById("iframeContainer").style.display="block";
419 document.getElementById("codeViewContainer").style.display="block";
420 }
421
416 422
417 NJevent("closeDocument", doc.model.file.uri); 423 NJevent("closeDocument", doc.model.file.uri);
418 //TODO: Delete object here 424 //TODO: Delete object here