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/common/directives/log-search-control.js b/app/common/directives/log-search-control.js index 1fa268c..b198f2d 100644 --- a/app/common/directives/log-search-control.js +++ b/app/common/directives/log-search-control.js
@@ -22,6 +22,11 @@ } }; + $scope.clear = function(){ + $scope.customSearch = ""; + $scope.clearSearchItem(); + } + $scope.doSearchOnClick = function() { var search = $scope.customSearch.replace(/^\s+/g,'').replace(/\s+$/g,''); if (search.length >= 2) {