mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
cloudstack 3.0 new UI - IP Address page - implement search.
This commit is contained in:
parent
cefa1f3311
commit
c802971cce
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user