Refactored panel communication to use an angular service, started work on panel editing interface

This commit is contained in:
Rashid Khan
2013-02-07 15:05:55 -07:00
parent 085b688850
commit ee65f81a2b
18 changed files with 178 additions and 75 deletions
+2 -4
View File
@@ -1,5 +1,5 @@
angular.module('kibana.stringquery', [])
.controller('stringquery', function($scope, $rootScope) {
.controller('stringquery', function($scope, eventBus) {
var _id = _.uniqueId();
@@ -18,9 +18,7 @@ angular.module('kibana.stringquery', [])
$scope.init = function() {
$scope.send_query = function(query) {
_.each(_groups,function(group) {
$rootScope.$broadcast(group+"-query", query)
});
eventBus.broadcast($scope.$id,$scope.panel.group,'query',query)
}
}
$scope.init();