From 5adae48d30ee921c2066bcc2f094e1d92541620c Mon Sep 17 00:00:00 2001 From: Thomas Steur <thomas.steur@googlemail.com> Date: Tue, 4 Mar 2014 04:20:09 +0100 Subject: [PATCH] fix dashboard menu did overlay the layout dialog as well as other dialogs from the dashboard menu --- plugins/Dashboard/javascripts/dashboard.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/Dashboard/javascripts/dashboard.js b/plugins/Dashboard/javascripts/dashboard.js index d4502d02ab..3ba6c82e22 100644 --- a/plugins/Dashboard/javascripts/dashboard.js +++ b/plugins/Dashboard/javascripts/dashboard.js @@ -239,30 +239,37 @@ function copyDashboardToUser() { DashboardSettingsControlBase.call(this, element); $(this).on('resetDashboard', function () { + this.hide(); resetDashboard(); }); $(this).on('showChangeDashboardLayoutDialog', function () { + this.hide(); showChangeDashboardLayoutDialog(); }); $(this).on('renameDashboard', function () { + this.hide(); renameDashboard(); }); $(this).on('removeDashboard', function () { + this.hide(); removeDashboard(); }); $(this).on('setAsDefaultWidgets', function () { + this.hide(); setAsDefaultWidgets(); }); $(this).on('copyDashboardToUser', function () { + this.hide(); copyDashboardToUser(); }); $(this).on('createDashboard', function () { + this.hide(); createDashboard(); }); }; @@ -276,6 +283,10 @@ function copyDashboardToUser() { } }, + hide: function () { + this.$element.removeClass('visible'); + }, + isWidgetAvailable: function (widgetUniqueId) { return !$('#dashboardWidgetsArea').find('[widgetId=' + widgetUniqueId + ']').length; }, -- GitLab