diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io.js index 8226cfb040..32c3b58df7 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io.js @@ -73,8 +73,12 @@ define(function(require) { function _setup(context) { $("input[name='graphics_type']", context).change(function() { - $("#TYPE", context).val($(this).attr("value")) - $("#LISTEN", context).val("0.0.0.0") + $("#TYPE", context).val($(this).attr("value")); + if ($(this).attr("value") !== '') { + $("#LISTEN", context).val("0.0.0.0"); + } else { + $("#LISTEN", context).val(''); + } }); context.off("click", '#add_input'); diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs index ba740d29ab..32c4ed32e5 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs @@ -20,6 +20,8 @@