Added global field list service for use in panel editor type ahead

This commit is contained in:
Rashid Khan
2013-04-05 10:08:00 -07:00
parent 122d94f78c
commit 68b765789a
6 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<div class="span4">
<form class="input-append">
<h6>Add field</h6>
<input bs-typeahead="all_fields" type="text" class="input-small" ng-model='newfield'>
<input bs-typeahead="fields.list" type="text" class="input-small" ng-model='newfield'>
<button class="btn" ng-click="toggle_field(newfield);newfield=''"><i class="icon-plus"></i></button>
</form>
</div>
+1 -2
View File
@@ -1,5 +1,5 @@
angular.module('kibana.table', [])
.controller('table', function($scope, eventBus) {
.controller('table', function($scope, eventBus, fields) {
// Set and populate defaults
var _d = {
@@ -142,7 +142,6 @@ angular.module('kibana.table', [])
// This breaks, use $scope.data for this
$scope.all_fields = get_all_fields($scope.data);
broadcast_results();
// If we're not sorting in reverse chrono order, query every index for