diff options
author | Ananya Sen | 2012-02-05 19:20:37 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-05 19:20:37 -0800 |
commit | 272c5f74f4ce76fec9cbe360817bf23639307d3a (patch) | |
tree | 1ae8ff6bbf6f22fbcca1e1a70f3063855d00ee46 /js/io/document/text-document.js | |
parent | 45cfffd9261ab1aa714554c584f0d0d8fe627c91 (diff) | |
download | ninja-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-x | js/io/document/text-document.js | 1 |
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);} |