aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-30 23:02:46 -0700
committerValerio Virgillito2012-05-30 23:02:46 -0700
commit66632a6e0de0998ff6d36abdaa8c3a546eada0f5 (patch)
tree1f53b248cbc81cb7e7a84dd009975ecb379f741e /js/controllers
parent0a769756547acb93346d8e1b4126931a78845255 (diff)
downloadninja-66632a6e0de0998ff6d36abdaa8c3a546eada0f5.tar.gz
fixing the closing of documents
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index e059e7e1..13ab33cc 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -53,10 +53,9 @@ exports.DocumentController = Montage.create(Component, {
53 document.getElementById("iframeContainer").style.display = "block"; 53 document.getElementById("iframeContainer").style.display = "block";
54 document.getElementById("codeViewContainer").style.display = "block"; 54 document.getElementById("codeViewContainer").style.display = "block";
55 } else if(this._currentDocument.currentView === "design") { 55 } else if(this._currentDocument.currentView === "design") {
56 this._currentDocument.model.currentView.show(); 56
57 } else { 57 } else {
58 document.getElementById("iframeContainer").style.display = "none"; 58 document.getElementById("iframeContainer").style.display = "none";
59 this._currentDocument.model.currentView.show();
60 } 59 }
61 60
62 } 61 }