[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.

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Oct 24 11:19:32 UTC 2016


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 23/10/2016 14:24, archus at linux.vnet.ibm.com wrote:
> 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{
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list