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
+13
View File
@@ -15,6 +15,19 @@ angular.module('kibana.directives', [])
}
};
})
.directive('addPanel', function($compile) {
return {
restrict: 'A',
link: function(scope, elem, attrs) {
scope.$watch('panel.type', function(n,o) {
if(!_.isUndefined(scope.panel.type)) {
var template = '<div ng-controller="'+scope.panel.type+'" ng-include src="\''+scope.edit_path(scope.panel.type)+'\'"></div>';
elem.html($compile(angular.element(template))(scope));
}
})
}
};
})
.directive('arrayJoin', function() {
return {
restrict: 'A',