cloudstack 3.0 new UI - system - guest network - network tab - implement search.

This commit is contained in:
Jessica Wang 2012-01-05 15:31:14 -08:00
parent 413beb78f5
commit c291508385

View File

@ -935,9 +935,21 @@
}
},
dataProvider: function(args) {
dataProvider: function(args) {
var array1 = [];
if(args.filterBy != null) {
if(args.filterBy.search != null && args.filterBy.search.by != null && args.filterBy.search.value != null) {
switch(args.filterBy.search.by) {
case "name":
if(args.filterBy.search.value.length > 0)
array1.push("&keyword=" + args.filterBy.search.value);
break;
}
}
}
$.ajax({
url: createURL("listNetworks&trafficType=Guest&zoneId=" + selectedZoneObj.id),
url: createURL("listNetworks&trafficType=Guest&zoneId=" + selectedZoneObj.id + "&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
dataType: "json",
success: function(json) {
var items = json.listnetworksresponse.network;