aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-10 16:17:21 -0800
committerJose Antonio Marquez2012-02-10 16:17:21 -0800
commitdaa1cb4327ed82e6784e3f1e1e159a9dcc094228 (patch)
tree4e3ffc6ca8fe06e5ab3ec76f38a81f852a999a11 /js/controllers
parentf7f445e8ced728d04de4bf1c5711f6756488a71e (diff)
downloadninja-daa1cb4327ed82e6784e3f1e1e159a9dcc094228.tar.gz
Adding back file open for code view
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 22467b44..7e2fb599 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -178,6 +178,12 @@ DocumentController = exports.DocumentController = Montage.create(Component, {
178 break; 178 break;
179 default: 179 default:
180 //Open in code view 180 //Open in code view
181 var code = Montage.create(TextDocument, {"source": {value: doc.content}}), docuuid = Uuid.generate(), textArea;
182 textArea = this.application.ninja.stage.stageView.createTextAreaElement(docuuid);
183 code.initialize(doc, docuuid, textArea, textArea.parentNode);
184 code._documentType = doc.extension;
185 code.textArea.value = doc.content;
186 this.application.ninja.stage.stageView.createTextView(code);
181 break; 187 break;
182 } 188 }
183 189