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

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

Reviewed-By: Lucio Correia <luciojhc@linux.vnet.ibm.com> On 23/10/2016 14:24, archus@linux.vnet.ibm.com wrote:
From: Archana Singh <archus@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@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{
-- Lucio Correia Software Engineer IBM LTC Brazil

Applied. Thanks. Regards, Aline Manera
participants (3)
-
Aline Manera
-
archus@linux.vnet.ibm.com
-
Lucio Correia