cloudstack 3.0 new UI - system - clusters page - implement search.

This commit is contained in:
Jessica Wang 2012-01-05 15:56:12 -08:00
parent 7bf3108d95
commit 255d3c41c5
1 changed files with 11 additions and 1 deletions

View File

@ -5529,7 +5529,17 @@
},
dataProvider: function(args) {
var array1 = [];
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;
}
}
}
array1.push("&zoneid=" + args.context.zones[0].id);
if("pods" in args.context)
array1.push("&podid=" + args.context.pods[0].id);