Commit 7373e374 by Rashid Khan

Fixed rerender on panel save, only applied to time picker now, removed debug…

Fixed rerender on panel save, only applied to time picker now, removed debug statement from hits panel
parent b7eaae3c
......@@ -109,8 +109,9 @@ angular.module('kibana.controllers', [])
}
}
$scope.send_render = function() {
$scope.$broadcast('render');
$scope.close_modal = function() {
// Dummy function, available for overriding in child scopes. For example
// a panel might want to broadcast an event when a modal is closed
}
$scope.add_panel = function(row,panel) {
......
......@@ -146,8 +146,6 @@ angular.module('kibana.hits', [])
// Populate element. Note that jvectormap appends, does not replace.
scripts.wait(function(){
console.log(scope.data)
// Populate element
try {
var plot = $.plot(elem, scope.data, {
......
......@@ -167,6 +167,10 @@ angular.module('kibana.timepicker', [])
$scope.time_apply();
}
$scope.close_modal = function() {
$scope.$broadcast('render');
}
$scope.time_check = function(){
// If time picker is defined (on initialization)
......
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>{{panel.title}} <small>editor</small></h3>
<h3>{{panel.title}} Editor</h3>
</div>
<div class="modal-body">
......@@ -13,5 +13,5 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" ng-click="dismiss();send_render()">Close</button>
<button type="button" class="btn btn-success" ng-click="dismiss();close_modal()">Close</button>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment