[Kimchi-devel] [PATCH] [Kimchi] Fixed resize volume click input number in virtualization->storag

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon Dec 5 11:07:44 UTC 2016


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

On 05/12/2016 06:49, rajgupta at linux.vnet.ibm.com wrote:
> From: Rajat Gupta <rajat.triumph at gmail.com>
>
> Added on change event and size validation
>
> Signed-off-by: Rajat Gupta <rajat.triumph at gmail.com>
> ---
>  ui/js/src/kimchi.storagepool_resize_volume_main.js | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ui/js/src/kimchi.storagepool_resize_volume_main.js b/ui/js/src/kimchi.storagepool_resize_volume_main.js
> index 791cc1d..1f5b4db 100644
> --- a/ui/js/src/kimchi.storagepool_resize_volume_main.js
> +++ b/ui/js/src/kimchi.storagepool_resize_volume_main.js
> @@ -23,8 +23,8 @@ kimchi.sp_resize_volume_main = function() {
>      var form = $('form#form-sp-resize-volume');
>
>      $(addButton).prop('disabled',true);
> -    $(size).on('keyup', function(){
> -        if($(this).val().length !==0) {
> +    $(size).on('keyup change', function(){
> +        if($(this).val() > 0) {
>              addButton.prop('disabled', false);
>          } else{
>              addButton.prop('disabled',true);
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list