[Kimchi-devel] [PATCH] [Kimchi] Issue 814: UI just show exported NFS path when clicked twice at field

Ramon Medeiros ramonn at linux.vnet.ibm.com
Wed Mar 16 20:26:14 UTC 2016


Reviewed-By: Ramon Medeiros <ramonn at br.ibm.com>

On 03/16/2016 04:43 PM, sguimaraes943 at gmail.com wrote:
> From: Samuel Guimarães <sguimaraes943 at gmail.com>
>
> Signed-off-by: Samuel Guimarães <sguimaraes943 at gmail.com>
> ---
>   ui/js/src/kimchi.storagepool_add_main.js | 10 +++++++---
>   1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/ui/js/src/kimchi.storagepool_add_main.js b/ui/js/src/kimchi.storagepool_add_main.js
> index dd81fef..eea0f03 100644
> --- a/ui/js/src/kimchi.storagepool_add_main.js
> +++ b/ui/js/src/kimchi.storagepool_add_main.js
> @@ -187,7 +187,6 @@ kimchi.initStorageAddPage = function() {
>           }
>       });
>   
> -    //$('#poolTypeId').selectMenu();
>       $('#serverComboboxId').combobox();
>       $('#targetFilterSelectId').filterselect();
>       var options = [ {
> @@ -223,8 +222,11 @@ kimchi.initStorageAddPage = function() {
>                       value : value.host
>                   });
>               });
> +            $('#serverComboboxId').combobox("setData", serverContent);
> +        }else {
> +            $('#serverComboboxId').combobox("destroy");
>           }
> -        $('#serverComboboxId').combobox("setData", serverContent);
> +
>           $('input[name=nfsServerType]').change(function() {
>               if ($(this).val() === 'input') {
>                   $('#nfsServerInputDiv').removeClass('tmpl-html');
> @@ -254,8 +256,10 @@ kimchi.initStorageAddPage = function() {
>                               value : value.target
>                           });
>                       });
> +                    $('#targetFilterSelectId').filterselect("setData", targetContent);
> +                }else {
> +                    $('#targetFilterSelectId').filterselect('destroy');
>                   }
> -                $('#targetFilterSelectId').filterselect("setData", targetContent);
>               });
>           });
>       });

-- 

Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn at br.ibm.com




More information about the Kimchi-devel mailing list