mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 new UI - system - clusters page - implement search.
This commit is contained in:
parent
7bf3108d95
commit
255d3c41c5
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue