From a3d221b842e9f6c4e172e798ac2dd7b5af9566b6 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 23 Nov 2011 14:10:02 -0800 Subject: [PATCH] Add search functionality to global settings --- ui/scripts/globalSettings.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ui/scripts/globalSettings.js b/ui/scripts/globalSettings.js index b2af994ef7d..f2486c37ea8 100644 --- a/ui/scripts/globalSettings.js +++ b/ui/scripts/globalSettings.js @@ -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) {