Updated angularjs to 1.1.2, added microanalysis to fields panel, fixed time picker initialization when mode is absolute or since

This commit is contained in:
Rashid Khan
2013-02-19 16:27:07 -07:00
parent 38c92ac482
commit 77ce7b9158
9 changed files with 215 additions and 204 deletions
+12 -2
View File
@@ -6,7 +6,7 @@ angular.module('kibana.fields', [])
// Set and populate defaults
var _d = {
group : "default",
style : {"font-size":"85%","line-height":"15px"},
style : {},
}
_.defaults($scope.panel,_d);
@@ -17,6 +17,16 @@ angular.module('kibana.fields', [])
$scope.fields = _.union(fields.all,$scope.fields);
$scope.active = _.clone(fields.active);
});
eventBus.register($scope,'table_documents', function(event, docs) {
$scope.docs = docs;
});
}
$scope.toggle_micropanel = function(field) {
$scope.micropanel = {
field: field,
values : top_field_values($scope.docs,field,10)
}
}
$scope.toggle_sort = function() {
@@ -33,7 +43,7 @@ angular.module('kibana.fields', [])
}
$scope.is_active = function(field) {
return _.indexOf($scope.active,field) > -1 ? 'active' : '';
return _.indexOf($scope.active,field) > -1 ? ['label','label-info'] : '';
}
$scope.init();