Commit 9fa0a4c9 by Torkel Ödegaard

Dashboard: fixed scroll isssue in firefox after dashboard import, Closes #1391

parent ea5da627
...@@ -48,7 +48,7 @@ function (angular, $) { ...@@ -48,7 +48,7 @@ function (angular, $) {
if (editorScope) { editorScope.dismiss(); } if (editorScope) { editorScope.dismiss(); }
} }
scope.onAppEvent("dashboard-loaded", hideEditorPane); scope.$on("$destroy", hideEditorPane);
scope.onAppEvent('hide-dash-editor', hideEditorPane); scope.onAppEvent('hide-dash-editor', hideEditorPane);
scope.onAppEvent('show-dash-editor', function(evt, payload) { scope.onAppEvent('show-dash-editor', function(evt, payload) {
...@@ -65,6 +65,7 @@ function (angular, $) { ...@@ -65,6 +65,7 @@ function (angular, $) {
editorScope = payload.scope ? payload.scope.$new() : scope.$new(); editorScope = payload.scope ? payload.scope.$new() : scope.$new();
editorScope.dismiss = function() { editorScope.dismiss = function() {
console.log('dismiss: ');
editorScope.$destroy(); editorScope.$destroy();
elem.empty(); elem.empty();
lastEditor = null; lastEditor = null;
......
...@@ -158,7 +158,6 @@ function (angular, _, $, config, kbn, moment) { ...@@ -158,7 +158,6 @@ function (angular, _, $, config, kbn, moment) {
date = date.replace('M', 'mon'); date = date.replace('M', 'mon');
return date; return date;
} }
date = kbn.parseDate(date); date = kbn.parseDate(date);
} }
......
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