aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-31 13:26:48 -0700
committerJose Antonio Marquez2012-07-31 13:26:48 -0700
commitaada5dbc179c06f2eb04db1d5651bb48bf32ec82 (patch)
treef9ccb79c1c77c4b8dcaae581dadc8b20b19574a7
parentce51db74b0e1a90e1e2d4c39028154881b49b512 (diff)
downloadninja-aada5dbc179c06f2eb04db1d5651bb48bf32ec82.tar.gz
Fix: Enabling preview from code view
Added a temp patch to enable preview from code view when viewing HTML document (with design view). This does not save external assets, so CSS and components will not be saved.
-rwxr-xr-xjs/document/models/base.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js
index a73b8b20..d51806b2 100755
--- a/js/document/models/base.js
+++ b/js/document/models/base.js
@@ -323,7 +323,8 @@ exports.BaseDocumentModel = Montage.create(Component, {
323 } 323 }
324 } 324 }
325 } else if (this.currentView === this.views.code) { 325 } else if (this.currentView === this.views.code) {
326 //TODO: Add save logic for code view 326 //TODO: Add save logic for code view (this is a temp patch)
327 this.save(libCopyCallback);
327 } else { 328 } else {
328 //TODO: Error handle 329 //TODO: Error handle
329 } 330 }