From 7373e3749066a82993acf667fc274fc6b72186a2 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Sat, 6 Apr 2013 20:54:29 -0700 Subject: [PATCH] Fixed rerender on panel save, only applied to time picker now, removed debug statement from hits panel --- js/controllers.js | 5 +++-- panels/hits/module.js | 2 -- panels/timepicker/module.js | 4 ++++ partials/paneleditor.html | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/js/controllers.js b/js/controllers.js index 42936fdc877..701c1293632 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -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) { diff --git a/panels/hits/module.js b/panels/hits/module.js index a9acca4105b..a74a8883ae2 100644 --- a/panels/hits/module.js +++ b/panels/hits/module.js @@ -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, { diff --git a/panels/timepicker/module.js b/panels/timepicker/module.js index 72b6d6038be..809df1f7f88 100644 --- a/panels/timepicker/module.js +++ b/panels/timepicker/module.js @@ -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) diff --git a/partials/paneleditor.html b/partials/paneleditor.html index e2ac1ad9a9d..c24857560a1 100644 --- a/partials/paneleditor.html +++ b/partials/paneleditor.html @@ -1,6 +1,6 @@ \ No newline at end of file