From d067b69d20bae64d65bd1bafdef74efe21504c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 30 Mar 2014 15:00:09 +0200 Subject: [PATCH] Fixes #251, text panel change is now updating panel correctly. Changed button text from Cancel to Close --- src/app/directives/grafanaGraph.js | 2 +- src/app/directives/kibanaPanel.js | 2 +- src/app/panels/text/editor.html | 6 ++++-- src/app/panels/text/module.html | 2 +- src/app/panels/text/module.js | 4 ++++ src/app/partials/dasheditor.html | 2 +- src/app/partials/paneleditor.html | 2 +- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index ac6beed8fa3..5bff9a7f3fb 100644 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -318,7 +318,7 @@ function (angular, $, kbn, moment, _) { } }); - function render_panel_as_graphite_png(url) { + function render_panel_as_graphite_png(url) { url += '&width=' + elem.width(); url += '&height=' + elem.css('height').replace('px', ''); url += '&bgcolor=1f1f1f'; // @grayDarker & @kibanaPanelBackground diff --git a/src/app/directives/kibanaPanel.js b/src/app/directives/kibanaPanel.js index 664707aeebf..0dc7621648a 100644 --- a/src/app/directives/kibanaPanel.js +++ b/src/app/directives/kibanaPanel.js @@ -73,7 +73,7 @@ function (angular, $, _) { elem.removeClass("ng-cloak"); } - newScope.$on('$destroy',function(){ + newScope.$on('$destroy',function() { elem.unbind(); elem.remove(); }); diff --git a/src/app/panels/text/editor.html b/src/app/panels/text/editor.html index 02177bc34d5..6af4dc069c2 100644 --- a/src/app/panels/text/editor.html +++ b/src/app/panels/text/editor.html @@ -8,9 +8,11 @@ -