Added ability to customize interval in histogram, issue #7. Also fixed bug that caused editor and panel to be in different scopes

This commit is contained in:
Rashid Khan
2013-05-03 13:54:29 -07:00
parent c5678139ef
commit 6b6355e619
17 changed files with 82 additions and 43 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<div class="row-fluid" ng-controller="fields">
<div class="row-fluid">
<div class="span3"><h6>Popup Position</h6>
<select class="input-small" ng-model="panel.micropanel_position" ng-options="f for f in ['top','right','bottom','left']" ng-change="reload_list();"></select></span>
</div>
+2 -3
View File
@@ -13,7 +13,7 @@
### Group Events
#### Recieves
* table_documents :: An object containing the documents in the table panel
*** Sends
#### Sends
* fields :: an object containing the sort order, existing fields and selected fields
*/
@@ -42,7 +42,6 @@ angular.module('kibana.fields', [])
$scope.docs = docs.docs;
});
eventBus.register($scope,"get_fields", function(event,id) {
console.log("field.get_fields");
eventBus.broadcast($scope.$id,$scope.panel.group,"selected_fields",$scope.active);
});
}
@@ -79,7 +78,7 @@ angular.module('kibana.fields', [])
}
$scope.build_search = function(field, value,negate) {
$scope.panel.query = add_to_query($scope.panel.query,field,value,negate)
$scope.panel.query = [add_to_query($scope.panel.query,field,value,negate)]
eventBus.broadcast($scope.$id,$scope.panel.group,'query',$scope.panel.query);
}