bug 8012: network page - Add External Firewall dialog - Usage Interface field.

This commit is contained in:
Jessica Wang 2011-01-14 16:48:35 -08:00
parent 90a14fb7b3
commit b13f5574ec
2 changed files with 7 additions and 7 deletions

View File

@ -842,9 +842,9 @@
</li>
<li>
<label>
User Interface:</label>
<input class="text" type="text" id="user_interface" />
<div id="user_interface_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
Usage Interface:</label>
<input class="text" type="text" id="usage_interface" />
<div id="usage_interface_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
</div>
</li>
<li>

View File

@ -600,7 +600,7 @@ function bindAddExternalFirewallButton($button, $midmenuItem1) {
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("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("Private Zone", $thisDialog.find("#private_zone"), $thisDialog.find("#private_zone_errormsg"), true); //optinal
if (!isValid)
@ -653,8 +653,8 @@ function bindAddExternalFirewallButton($button, $midmenuItem1) {
url.push("privateInterface="+privateInterface);
}
var userInterface = $thisDialog.find("#user_interface").val();
if(userInterface != null && userInterface.length > 0) {
var usageInterface = $thisDialog.find("#usage_interface").val();
if(usageInterface != null && usageInterface.length > 0) {
if(isQuestionMarkAdded == false) {
url.push("?");
isQuestionMarkAdded = true;
@ -662,7 +662,7 @@ function bindAddExternalFirewallButton($button, $midmenuItem1) {
else {
url.push("&");
}
url.push("userInterface="+userInterface);
url.push("usageInterface="+usageInterface);
}
var publicZone = $thisDialog.find("#public_zone").val();