CS-15475: Fix missing 'add guest network' action from network list

Original patch by: Pranav Saxena <pranav.saxena@citrix.com>
Reviewed by: Brian Federle <brian.federle@citrix.com>
This commit is contained in:
Brian Federle 2012-07-10 11:23:18 -07:00
parent 3bbb694413
commit b000b8047e

View File

@ -197,7 +197,7 @@
label: 'label.add.guest.network',
preFilter: function(args) {
var basicZoneExists = false;
var basicZoneExists = true; //Modifying the logic behind displaying the tabs depending on the networktype
$.ajax({
url: createURL("listZones"),
dataType: "json",
@ -206,8 +206,8 @@
if(json.listzonesresponse.zone != null && json.listzonesresponse.zone.length > 0) {
zoneObjs = json.listzonesresponse.zone;
$(zoneObjs).each(function() {
if(this.networktype == "Basic") {
basicZoneExists = true;
if(this.networktype == "Advanced") {
basicZoneExists = false; // For any occurence of an Advanced zone with any combination of basic zone , the add guest network tab will be displayed
return false; //break each loop
}
});