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.html b/app/common/directives/log-search-control.html
index 0e4136e..5d2246c 100644
--- a/app/common/directives/log-search-control.html
+++ b/app/common/directives/log-search-control.html
@@ -3,7 +3,7 @@
     <label for="content__search-input">Event Log Search</label>
     <input id="content__search-input" type="text" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/>
     <div class="search-submit__wrapper">
-		<button class="clear-input" ng-click="customSearch = ''">&#10005;</button>
+		<button class="clear-input" ng-click="clear()">&#10005;</button>
         <input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/>
     </div>
 </div>
\ No newline at end of file
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) {