aboutsummaryrefslogtreecommitdiff
path: root/js/components
diff options
context:
space:
mode:
Diffstat (limited to 'js/components')
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js
index 1a580284..dbb4fcad 100755
--- a/js/components/layout/document-bar.reel/document-bar.js
+++ b/js/components/layout/document-bar.reel/document-bar.js
@@ -171,6 +171,14 @@ exports.DocumentBar = Montage.create(Component, {
171 }, 171 },
172 //////////////////////////////////////////////////////////////////// 172 ////////////////////////////////////////////////////////////////////
173 // 173 //
174 renderDesignView: {
175 value: function () {
176 //Reloading in design view (with updates from other view)
177 this.reloadView('design', this.fileTemplate);
178 }
179 },
180 ////////////////////////////////////////////////////////////////////
181 //
174 showViewDesign: { 182 showViewDesign: {
175 value: function () { 183 value: function () {
176 // 184 //
@@ -179,11 +187,14 @@ exports.DocumentBar = Montage.create(Component, {
179 this._currentDocument.model.switchViewTo('design'); 187 this._currentDocument.model.switchViewTo('design');
180 this.btnCode.setAttribute('class', 'inactive'); 188 this.btnCode.setAttribute('class', 'inactive');
181 this.btnDesign.removeAttribute('class'); 189 this.btnDesign.removeAttribute('class');
190 //this._currentDocument.model.file.content.body = '<div class="test">hello</div><div class="test">hello</div>';
191 var render = this.renderDesignView.bind(this._currentDocument);
192 render();
182 } 193 }
183 } 194 }
184 }, 195 },
185 //////////////////////////////////////////////////////////////////// 196 ////////////////////////////////////////////////////////////////////
186 // 197 //TODO: Implement code with that updates the file template through the ninja document parser
187 showViewCode: { 198 showViewCode: {
188 value: function () { 199 value: function () {
189 // 200 //