mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 8012: network page - Add External Firewall dialog - Usage Interface field.
This commit is contained in:
parent
90a14fb7b3
commit
b13f5574ec
@ -842,9 +842,9 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
User Interface:</label>
|
Usage Interface:</label>
|
||||||
<input class="text" type="text" id="user_interface" />
|
<input class="text" type="text" id="usage_interface" />
|
||||||
<div id="user_interface_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
<div id="usage_interface_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@ -600,7 +600,7 @@ function bindAddExternalFirewallButton($button, $midmenuItem1) {
|
|||||||
isValid &= validateString("Password", $thisDialog.find("#password"), $thisDialog.find("#password_errormsg"), false); //required
|
isValid &= validateString("Password", $thisDialog.find("#password"), $thisDialog.find("#password_errormsg"), false); //required
|
||||||
isValid &= validateString("Public Interface", $thisDialog.find("#public_interface"), $thisDialog.find("#public_interface_errormsg"), true); //optinal
|
isValid &= validateString("Public Interface", $thisDialog.find("#public_interface"), $thisDialog.find("#public_interface_errormsg"), true); //optinal
|
||||||
isValid &= validateString("Private Interface", $thisDialog.find("#private_interface"), $thisDialog.find("#private_interface_errormsg"), true); //optinal
|
isValid &= validateString("Private Interface", $thisDialog.find("#private_interface"), $thisDialog.find("#private_interface_errormsg"), true); //optinal
|
||||||
isValid &= validateString("User Interface", $thisDialog.find("#user_interface"), $thisDialog.find("#user_interface_errormsg"), true); //optinal
|
isValid &= validateString("Usage Interface", $thisDialog.find("#usage_interface"), $thisDialog.find("#usage_interface_errormsg"), true); //optinal
|
||||||
isValid &= validateString("Public Zone", $thisDialog.find("#public_zone"), $thisDialog.find("#public_zone_errormsg"), true); //optinal
|
isValid &= validateString("Public Zone", $thisDialog.find("#public_zone"), $thisDialog.find("#public_zone_errormsg"), true); //optinal
|
||||||
isValid &= validateString("Private Zone", $thisDialog.find("#private_zone"), $thisDialog.find("#private_zone_errormsg"), true); //optinal
|
isValid &= validateString("Private Zone", $thisDialog.find("#private_zone"), $thisDialog.find("#private_zone_errormsg"), true); //optinal
|
||||||
if (!isValid)
|
if (!isValid)
|
||||||
@ -653,8 +653,8 @@ function bindAddExternalFirewallButton($button, $midmenuItem1) {
|
|||||||
url.push("privateInterface="+privateInterface);
|
url.push("privateInterface="+privateInterface);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userInterface = $thisDialog.find("#user_interface").val();
|
var usageInterface = $thisDialog.find("#usage_interface").val();
|
||||||
if(userInterface != null && userInterface.length > 0) {
|
if(usageInterface != null && usageInterface.length > 0) {
|
||||||
if(isQuestionMarkAdded == false) {
|
if(isQuestionMarkAdded == false) {
|
||||||
url.push("?");
|
url.push("?");
|
||||||
isQuestionMarkAdded = true;
|
isQuestionMarkAdded = true;
|
||||||
@ -662,7 +662,7 @@ function bindAddExternalFirewallButton($button, $midmenuItem1) {
|
|||||||
else {
|
else {
|
||||||
url.push("&");
|
url.push("&");
|
||||||
}
|
}
|
||||||
url.push("userInterface="+userInterface);
|
url.push("usageInterface="+usageInterface);
|
||||||
}
|
}
|
||||||
|
|
||||||
var publicZone = $thisDialog.find("#public_zone").val();
|
var publicZone = $thisDialog.find("#public_zone").val();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user