diff options
author | Jose Antonio Marquez | 2012-02-12 16:50:33 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-12 16:50:33 -0800 |
commit | b1fc4f84d92efeaa33ec239b662235c9e8218d0c (patch) | |
tree | 8f8c9aacb3c2a2315b8f44ca4400dfea95e21833 /js/controllers | |
parent | 9f2356c48b831d32d7278648656fe44b98bc4a1f (diff) | |
download | ninja-b1fc4f84d92efeaa33ec239b662235c9e8218d0c.tar.gz |
File Save (HTML only)
Added the ability to save an HTML file from design view, need to add CSS detection and saving (of styles in <style> only). Also need to add 'Save All' for all file attached to the HTML file.
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 7f4feff9..227b5462 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -97,13 +97,19 @@ DocumentController = exports.DocumentController = Montage.create(Component, { | |||
97 | this.application.ninja.newFileController.showNewFileDialog(newFileSettings); | 97 | this.application.ninja.newFileController.showNewFileDialog(newFileSettings); |
98 | } | 98 | } |
99 | }, | 99 | }, |
100 | 100 | ||
101 | |||
102 | //////////////////////////////////////////////////////////////////// | ||
103 | //TODO: Improve logic and make functions | ||
101 | handleExecuteSave: { | 104 | handleExecuteSave: { |
102 | value: function(event) { | 105 | value: function(event) { |
103 | this.activeDocument.save(); | 106 | // |
104 | } | 107 | this.application.ninja.ioMediator.fileSave(this.activeDocument.save()); |
108 | } | ||
105 | }, | 109 | }, |
106 | 110 | //////////////////////////////////////////////////////////////////// | |
111 | |||
112 | |||
107 | createNewFile:{ | 113 | createNewFile:{ |
108 | value:function(newFileObj){ | 114 | value:function(newFileObj){ |
109 | //console.log(newFileObj);//contains the template uri and the new file uri | 115 | //console.log(newFileObj);//contains the template uri and the new file uri |