aboutsummaryrefslogtreecommitdiff
path: root/js/components/ui/FilePicker
diff options
context:
space:
mode:
authorAnanya Sen2012-02-09 11:12:21 -0800
committerAnanya Sen2012-02-09 11:12:21 -0800
commitc9d0cb73698066247c6267bba8fa446a979565fb (patch)
tree8d706201eb23565e41e288c710e9ff8a83639113 /js/components/ui/FilePicker
parent04d375a02e44d1c11054ace16cd243ada8e6bd23 (diff)
downloadninja-c9d0cb73698066247c6267bba8fa446a979565fb.tar.gz
fixed templates descriptor, changed validation to on key up, fixed minor ui issues
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/components/ui/FilePicker')
-rwxr-xr-xjs/components/ui/FilePicker/file-input-field.reel/file-input-field.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js b/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js
index f832e618..8710de63 100755
--- a/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js
+++ b/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js
@@ -30,7 +30,7 @@ var FileInputField = exports.FileInputField = Montage.create(Component, {
30 30
31 this.eventManager.addEventListener("pickerSelectionsDone", function(evt){that.handleFileInputPickerSelectionsDone(evt);}, false); 31 this.eventManager.addEventListener("pickerSelectionsDone", function(evt){that.handleFileInputPickerSelectionsDone(evt);}, false);
32 32
33 this.newFileDirectory.addEventListener("blur", function(evt){that.handleNewFileDirectoryOnblur(evt);}, false); 33 this.newFileDirectory.addEventListener("keyup", function(evt){that.handleNewFileDirectoryOnkeyup(evt);}, false);
34 } 34 }
35 }, 35 },
36 36
@@ -77,7 +77,7 @@ var FileInputField = exports.FileInputField = Montage.create(Component, {
77 } 77 }
78 }, 78 },
79 79
80 handleNewFileDirectoryOnblur:{ 80 handleNewFileDirectoryOnkeyup:{
81 value:function(evt){ 81 value:function(evt){
82 if(this.newFileDirectory.value !== ""){ 82 if(this.newFileDirectory.value !== ""){
83 var newFileDirectorySetEvent = document.createEvent("Events"); 83 var newFileDirectorySetEvent = document.createEvent("Events");