Add search functionality to global settings

This commit is contained in:
Brian Federle 2011-11-23 14:10:02 -08:00
parent 9237e91344
commit a3d221b842
1 changed files with 11 additions and 1 deletions

View File

@ -36,8 +36,18 @@
value: { label: 'Value', editable: true }
},
dataProvider: function(args) {
var data = {
page: args.page,
pagesize: pageSize
};
if (args.filterBy.search.value) {
data.name = args.filterBy.search.value;
}
$.ajax({
url: createURL("listConfigurations&page=" + args.page + "&pagesize=" + pageSize),
url: createURL('listConfigurations'),
data: data,
dataType: "json",
async: true,
success: function(json) {