aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/html-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-13 15:03:23 -0800
committerJose Antonio Marquez2012-02-13 15:03:23 -0800
commit018a6132d93a73d28bd349122404c236e61cb765 (patch)
tree3f5c0131842536b11be3890d1656c056fefa0597 /js/io/document/html-document.js
parent1b84b4549934578caaad38ef14b34cba35e2622a (diff)
downloadninja-018a6132d93a73d28bd349122404c236e61cb765.tar.gz
Save 'code' view files
Added functionality (temp) to save files in code view.
Diffstat (limited to 'js/io/document/html-document.js')
-rwxr-xr-xjs/io/document/html-document.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/io/document/html-document.js b/js/io/document/html-document.js
index 99bf4576..dfd8566a 100755
--- a/js/io/document/html-document.js
+++ b/js/io/document/html-document.js
@@ -471,9 +471,12 @@ var HTMLDocument = exports.HTMLDocument = Montage.create(baseDocumentModule.Base
471 save: { 471 save: {
472 enumerable: false, 472 enumerable: false,
473 value: function () { 473 value: function () {
474 //console.log(this._styles, this._stylesheets);
475 //TODO: Add code view logic and also styles for HTML 474 //TODO: Add code view logic and also styles for HTML
476 return {mode: 'html', document: this._userDocument, style: this._styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; 475 if (this.currentView === 'design') {
476 return {mode: 'html', document: this._userDocument, style: this._styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
477 } else if(this.currentView === "code"){
478 //TODO: Would this get call when we are in code of HTML?
479 }
477 } 480 }
478 } 481 }
479 //////////////////////////////////////////////////////////////////// 482 ////////////////////////////////////////////////////////////////////