diff options
author | Jose Antonio Marquez | 2012-07-24 12:11:53 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-07-24 12:11:53 -0700 |
commit | 5454cc462903c83a8c3651065b03cc1855db125e (patch) | |
tree | 3d35de3f87215f7e956d8c3e77b98039119c1218 /js/document | |
parent | 2b4439fed88fbb785ee14a3372ae9480d186bae4 (diff) | |
download | ninja-5454cc462903c83a8c3651065b03cc1855db125e.tar.gz |
New: Adding method to switch from code to design view
Added functionality to parse the code view string back into a Ninja template object to redraw design view. Only outstanding bugs are timeline errors and code view layout issues.
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/document-html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/document/document-html.js b/js/document/document-html.js index 81a8912b..a59f5848 100755 --- a/js/document/document-html.js +++ b/js/document/document-html.js | |||
@@ -156,7 +156,7 @@ exports.HtmlDocument = Montage.create(Component, { | |||
156 | //Showing design iFrame | 156 | //Showing design iFrame |
157 | this.model.views.design.show(); | 157 | this.model.views.design.show(); |
158 | this.model.views.design.iframe.style.opacity = 0; | 158 | this.model.views.design.iframe.style.opacity = 0; |
159 | this.model.views.design.content = this.model.file.content; | 159 | this.model.views.design.content = this.application.ninja.ioMediator.tmplt.parseHtmlToNinjaTemplate(doc); |
160 | //TODO: Improve reference (probably through binding values) | 160 | //TODO: Improve reference (probably through binding values) |
161 | this.model.views.design._webGlHelper = this.model.webGlHelper; | 161 | this.model.views.design._webGlHelper = this.model.webGlHelper; |
162 | //Rendering design view, using observers to know when template is ready | 162 | //Rendering design view, using observers to know when template is ready |