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
+1
View File
@@ -19,6 +19,7 @@ var labjs = $LAB
.script("common/lib/modernizr-2.6.1.min.js")
.script("common/lib/underscore.min.js")
.script("common/lib/angular.min.js")
.script("common/lib/angular-strap.min.js")
.script("common/lib/elastic.min.js")
.script("common/lib/elastic-angular-client.min.js")
.script("common/lib/dateformat.js")
+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);