diff options
author | Jose Antonio Marquez | 2012-02-10 16:17:21 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-10 16:17:21 -0800 |
commit | daa1cb4327ed82e6784e3f1e1e159a9dcc094228 (patch) | |
tree | 4e3ffc6ca8fe06e5ab3ec76f38a81f852a999a11 /js/controllers | |
parent | f7f445e8ced728d04de4bf1c5711f6756488a71e (diff) | |
download | ninja-daa1cb4327ed82e6784e3f1e1e159a9dcc094228.tar.gz |
Adding back file open for code view
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 6 |
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 | ||