[Kimchi-devel] [PATCH] [Kimchi] Issue #1061: For s390x, in edit template add storage path, even after changing value in path textbox its border still remains red.

archus at linux.vnet.ibm.com archus at linux.vnet.ibm.com
Sun Oct 23 16:24:44 UTC 2016


From: Archana Singh <archus at 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 at 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




More information about the Kimchi-devel mailing list