From 5e53c1cde810b2ebff201ca33382545c000fe425 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Sat, 7 Sep 2013 22:36:23 +0530 Subject: Added support filter variables and history items --- share/tools/web_config/partials/history.html | 6 +++++- share/tools/web_config/partials/variables.html | 9 ++++++--- share/tools/web_config/webconfig.js | 19 +++++++++++++++++++ 3 files changed, 30 insertions(+), 4 deletions(-) (limited to 'share') diff --git a/share/tools/web_config/partials/history.html b/share/tools/web_config/partials/history.html index c7e36fe3..3ffee162 100644 --- a/share/tools/web_config/partials/history.html +++ b/share/tools/web_config/partials/history.html @@ -1,6 +1,10 @@ +
+ +
+ - +
{{ item }} diff --git a/share/tools/web_config/partials/variables.html b/share/tools/web_config/partials/variables.html index 206b6751..2b6d5636 100644 --- a/share/tools/web_config/partials/variables.html +++ b/share/tools/web_config/partials/variables.html @@ -1,9 +1,12 @@ +
+ +
+ - - + +
{{ variable.name }}
{{ variable.name }} {{ variable.value }}
- diff --git a/share/tools/web_config/webconfig.js b/share/tools/web_config/webconfig.js index 7e6a1f24..001e4791 100644 --- a/share/tools/web_config/webconfig.js +++ b/share/tools/web_config/webconfig.js @@ -1,5 +1,22 @@ webconfig = angular.module("webconfig", []); +webconfig.filter("filterVariable", function() { + return function(variables, query) { + var result = [] + if (variables == undefined) return result; + if (query == null) { return variables }; + + for(i=0; i