Reviewed-By: Ramon Medeiros <ramonn(a)br.ibm.com>
On 03/16/2016 04:43 PM, sguimaraes943(a)gmail.com wrote:
From: Samuel GuimarĂ£es <sguimaraes943(a)gmail.com>
Signed-off-by: Samuel GuimarĂ£es <sguimaraes943(a)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(a)br.ibm.com