CLOUDSTACK-3823: Show ICMP fields for protocolnumber
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/991f9334 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/991f9334 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/991f9334 Branch: refs/heads/ui-restyle Commit: 991f933492bde455649a5778aa010fa87770768f Parents: 506520a Author: Brian Federle <brian.fede...@citrix.com> Authored: Thu Oct 10 12:26:42 2013 -0700 Committer: Brian Federle <brian.fede...@citrix.com> Committed: Thu Oct 10 12:27:30 2013 -0700 ---------------------------------------------------------------------- ui/scripts/vpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/991f9334/ui/scripts/vpc.js ---------------------------------------------------------------------- diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 8059d6b..f25e57d 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -137,7 +137,7 @@ }); if ($(this).val() == 'protocolnumber') { - $icmpFields.hide(); + $icmpFields.show(); $portFields.show(); $protocolFields.show(); $portFields.show(); @@ -191,7 +191,7 @@ }); if ($(this).val() == 'protocolnumber') { - $icmpFields.hide(); + $icmpFields.show(); $otherFields.hide(); $protocolFields.show().addClass('required'); $inputs.filter('[name=startport],[name=endport]').show().attr('disabled', false);