aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/text-document.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-05 19:20:37 -0800
committerAnanya Sen2012-02-05 19:20:37 -0800
commit272c5f74f4ce76fec9cbe360817bf23639307d3a (patch)
tree1ae8ff6bbf6f22fbcca1e1a70f3063855d00ee46 /js/io/document/text-document.js
parent45cfffd9261ab1aa714554c584f0d0d8fe627c91 (diff)
downloadninja-272c5f74f4ce76fec9cbe360817bf23639307d3a.tar.gz
changes to show document dirty indicator on editing code view, and to remove dirty indicator on save.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/document/text-document.js')
-rwxr-xr-xjs/io/document/text-document.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/io/document/text-document.js b/js/io/document/text-document.js
index a768779f..683c513c 100755
--- a/js/io/document/text-document.js
+++ b/js/io/document/text-document.js
@@ -95,6 +95,7 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base
95 save:{ 95 save:{
96 value:function(removeCodeMirrorDivFlag){ 96 value:function(removeCodeMirrorDivFlag){
97 this.editor.save(); 97 this.editor.save();
98 this.dirtyFlag=false;
98 if(removeCodeMirrorDivFlag === true){ 99 if(removeCodeMirrorDivFlag === true){
99 var codemirrorDiv = this.textArea.parentNode.querySelector(".CodeMirror"); 100 var codemirrorDiv = this.textArea.parentNode.querySelector(".CodeMirror");
100 if(!!codemirrorDiv){codemirrorDiv.parentNode.removeChild(codemirrorDiv);} 101 if(!!codemirrorDiv){codemirrorDiv.parentNode.removeChild(codemirrorDiv);}