\
-
\
- \
- \
-
\
-
\
- \
- \
-
\
+
\
+ \
+ \
\
-
\
-
\
-
\
-
\
+
\
+
\
- \
+ \
+
\
\
\
\
@@ -908,6 +931,19 @@ function setupCreateHostDialog(){
$create_host_dialog.addClass("reveal-modal medium").attr("data-reveal", "");
$create_host_dialog.foundation()
+ $(".drivers", $create_host_dialog).hide();
+
+ $("#host_type_mad", $create_host_dialog).on("change", function(){
+ $("#vmm_mad", $create_host_dialog).val(this.value).change();
+ $("#im_mad", $create_host_dialog).val(this.value).change();
+
+ if (this.value == "custom") {
+ $(".drivers", $create_host_dialog).show();
+ } else {
+ $(".drivers", $create_host_dialog).hide();
+ }
+ })
+
// Show custom driver input only when custom is selected in selects
$('input[name="custom_vmm_mad"],'+
'input[name="custom_im_mad"],'+