commit | 171c6a1eebbe2c1b2ea24376bd1d8326d0017e39 | [log] [tgz] |
---|---|---|
author | Iftekharul Islam <iislam@us.ibm.com> | Fri Aug 11 08:35:47 2017 -0500 |
committer | Adriana Kobylak <anoo@us.ibm.com> | Mon Oct 09 14:09:47 2017 -0500 |
tree | b98b551edbf59f73cbb2797d90e8a2689d62d35c | |
parent | a547ff42efba633d372b89600c223fbe19bbe590 [diff] [blame] |
Added search clear functionality to filtering Change-Id: Id22b067c8bcc0e05aee6325153154ea7a81f17ae Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/app/server-health/controllers/sensors-overview-controller.js b/app/server-health/controllers/sensors-overview-controller.js index 90616b1..57e3b65 100644 --- a/app/server-health/controllers/sensors-overview-controller.js +++ b/app/server-health/controllers/sensors-overview-controller.js
@@ -41,6 +41,11 @@ return JSON.stringify(dt); }; + $scope.clear = function(){ + $scope.customSearch = ""; + $scope.searchTerms = []; + } + $scope.doSearchOnEnter = function (event) { var search = $scope.customSearch.replace(/^\s+/g,'').replace(/\s+$/g,''); if (event.keyCode === 13 &&