From: Archana Singh <archus(a)linux.vnet.ibm.com>
Currently for storage path textbox, on change event only the check
for value is done.Due to which only after clicking outside of textbox
the value is validated. This fix in addition to chnage added keyup
and input events.
Signed-off-by: Archana Singh <archus(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.template_edit_main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/js/src/kimchi.template_edit_main.js
b/ui/js/src/kimchi.template_edit_main.js
index 31cb8d9..7428ae6 100644
--- a/ui/js/src/kimchi.template_edit_main.js
+++ b/ui/js/src/kimchi.template_edit_main.js
@@ -338,7 +338,7 @@ kimchi.template_edit_main = function() {
}
});
- $(storageRow + '
input.storage-path').on('change',function(){
+ $(storageRow + ' input.storage-path').on('change input
keyup',function(){
if($(storageRow + ' input.storage-path').val()){
$(storageRow + '
span.storage-path').removeClass('has-error');
}else{
--
2.7.4