Added collapsable rows, error handling in table panel, ground work for new kinds of binding, refactored view a bit

This commit is contained in:
Rashid Khan
2013-02-01 14:16:55 -07:00
parent 896a6f7c10
commit a73242cae5
13 changed files with 78 additions and 34 deletions
+5
View File
@@ -47,6 +47,11 @@ angular.module('kibana.controllers', [])
// point to your ElasticSearch server
var ejs = $scope.ejs = ejsResource(config.elasticsearch);
$scope.toggle_row = function(row) {
$scope.$broadcast('toggle_row',row)
row.collapse = row.collapse ? false : true;
}
$scope.set_timespan = function(timespan) {
$scope.timespan = timespan;
$scope.from = time_ago($scope.timespan);