mirror of https://github.com/apache/cloudstack.git
Fix missing dataProvider for secondary storage list
This commit is contained in:
parent
5cd8edd443
commit
d5b9f2402c
|
|
@ -14135,35 +14135,34 @@
|
|||
}
|
||||
},
|
||||
|
||||
/*
|
||||
dataProvider: function(args) { //being replaced with dataProvider in line 6852
|
||||
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);
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
array1.push("&zoneid=" + args.context.zones[0].id);
|
||||
|
||||
$.ajax({
|
||||
url: createURL("listImageStores&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var items = json.listimagestoreresponse.imagestore;
|
||||
args.response.success({
|
||||
actionFilter: secondarystorageActionfilter,
|
||||
data:items
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
*/
|
||||
$.ajax({
|
||||
url: createURL("listImageStores&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var items = json.listimagestoresresponse.imagestore;
|
||||
args.response.success({
|
||||
actionFilter: secondarystorageActionfilter,
|
||||
data:items
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
actions: {
|
||||
add: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue