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);
});
});
});
--
1.9.3