cloudstack 3.0 new UI - IP Address page - implement search.

This commit is contained in:
Jessica Wang 2012-01-05 16:38:11 -08:00
parent cefa1f3311
commit c802971cce

View File

@ -755,9 +755,20 @@
if (args.context.networks) {
$.extend(data, { associatedNetworkId: args.context.networks[0].id });
}
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('listPublicIpAddresses'),
url: createURL("listPublicIpAddresses&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
data: data,
dataType: "json",
async: true,