Updated default dashboard, added filtering panel

This commit is contained in:
Rashid Khan
2013-07-14 21:42:35 -07:00
parent de8f8c5851
commit 2c5eb8bfb4
14 changed files with 230 additions and 87 deletions
+3 -4
View File
@@ -55,8 +55,7 @@ angular.module('kibana.table', [])
$scope.set_listeners($scope.panel.group)
// Now that we're all setup, request the time from our group
eventBus.broadcast($scope.$id,$scope.panel.group,"get_time")
$scope.get_data();
}
$scope.set_listeners = function(group) {
@@ -108,8 +107,8 @@ angular.module('kibana.table', [])
}
$scope.build_search = function(field,value,negate) {
var query = (negate ? '-':'+')+field+":\""+value+"\""
filterSrv.set({type:'querystring',query:query})
var query = field+":"+angular.toJson(value)
filterSrv.set({type:'querystring',query:query,mandate:(negate ? 'mustNot':'must')})
$scope.panel.offset = 0;
dashboard.refresh();
}