mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 11255: cloudStack - IP address page - Create Firewall rule - fix a bug on Google Chrome that changing protocol dropdown (e.g. from TCP to ICMP) wouldn't correctly hide/show related input fields.
This commit is contained in:
parent
91910dd50e
commit
e19cff6beb
@ -307,7 +307,7 @@ function afterLoadIpJSP() {
|
||||
//*** Firewall tab (begin) ***
|
||||
var $createFirewallRow = $("#tab_content_firewall").find("#create_firewall_row");
|
||||
|
||||
$createFirewallRow.find("#protocol").bind("click", function(event) {
|
||||
$createFirewallRow.find("#protocol").bind("change", function(event) {
|
||||
if($(this).val() == null)
|
||||
return true;
|
||||
var protocol = $(this).val().toLowerCase();
|
||||
@ -1928,7 +1928,7 @@ function refreshCreateFirewallRow() {
|
||||
$createFirewallRow.find("#end_port").val("");
|
||||
$createFirewallRow.find("#ICMP_type").val("");
|
||||
$createFirewallRow.find("#ICMP_code").val("");
|
||||
$createFirewallRow.find("#protocol").click();
|
||||
$createFirewallRow.find("#protocol").change();
|
||||
}
|
||||
|
||||
//***** Firewall tab (end) **********************************************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user