aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/save-as-dialog.reel/save-as-dialog.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-13 16:57:52 -0800
committerJose Antonio Marquez2012-02-13 16:57:52 -0800
commit79f7727ed077d054d791337d822c8e2259925084 (patch)
treef409fe261193dca124273b6ab1f6e9c06d3b3fe3 /js/io/ui/save-as-dialog.reel/save-as-dialog.js
parent5b55cfe0bc333a9a18be6329fdc21b5a6652a15a (diff)
parentf3dc624fa464a79fd8e8cec1ddd16ed2109bda23 (diff)
downloadninja-79f7727ed077d054d791337d822c8e2259925084.tar.gz
Merge branch 'refs/heads/AnanyaFileIO' into FileIO
Diffstat (limited to 'js/io/ui/save-as-dialog.reel/save-as-dialog.js')
-rw-r--r--js/io/ui/save-as-dialog.reel/save-as-dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js
index 4546e124..786ef5c9 100644
--- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js
+++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js
@@ -89,7 +89,7 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, {
89 89
90 enableOk:{ 90 enableOk:{
91 value: function(){ 91 value: function(){
92 if(this.isValidFileName(this.fileName) && this.isValidUri(this.folderUri) && !this.checkFileExists(this.fileName, this.folderUri)){ 92 if(this.isValidFileName(this.fileName) && this.isValidUri(this.folderUri)){
93 this.okButton.removeAttribute("disabled"); 93 this.okButton.removeAttribute("disabled");
94 this.error.innerHTML=""; 94 this.error.innerHTML="";
95 } 95 }
@@ -141,7 +141,7 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, {
141 } 141 }
142 } 142 }
143 }else{ 143 }else{
144 if(this.error.innerHTML !== ""){ 144 if(this.error.innerHTML === ""){
145 this.showError("! Name and Location should be valid."); 145 this.showError("! Name and Location should be valid.");
146 } 146 }
147 //disable ok 147 //disable ok