added detection of empty fields

This commit is contained in:
Rashid Khan
2013-02-20 09:10:03 -07:00
parent 48ad884ee2
commit 9c7cd28023
4 changed files with 11 additions and 67 deletions
+1 -3
View File
@@ -68,9 +68,7 @@ angular.module('kibana.table', [])
}
$scope.build_search = function(field, value) {
var query = field + ":" + "\"" + addslashes(value.toString()) + "\"";
var glue = $scope.panel.query != "" ? " AND " : "";
$scope.panel.query = $scope.panel.query + glue + query;
$scope.panel.query = add_to_query($scope.panel.query,field,value)
$scope.panel.offset = 0;
$scope.get_data();
eventBus.broadcast($scope.$id,$scope.panel.group,'query',$scope.panel.query);