|
@@ -8,13 +8,13 @@
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
- showHostField(false);
|
|
|
+ showHostField();
|
|
|
|
|
|
$("select[id$='hostType']").on('change', showHostField);
|
|
|
|
|
|
});
|
|
|
|
|
|
-function showHostField(value)
|
|
|
+function showHostField()
|
|
|
{
|
|
|
var $hostTypeField = $("select[id$='hostType'] :selected");
|
|
|
var $hostField = $("div.form-group[id$='host']");
|
|
@@ -25,9 +25,7 @@ function showHostField(value)
|
|
|
$hostField.show();
|
|
|
}
|
|
|
|
|
|
- if (value !== false) {
|
|
|
- updateFixedIPs();
|
|
|
- }
|
|
|
+ updateFixedIPs();
|
|
|
|
|
|
return false;
|
|
|
}
|