Skip to content

Commit

Permalink
fix dashboard menu did overlay the layout dialog as well as other dia…
Browse files Browse the repository at this point in the history
…logs from the dashboard menu
  • Loading branch information
tsteur committed Mar 4, 2014
1 parent 23186d7 commit 5adae48
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/Dashboard/javascripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
};
Expand All @@ -276,6 +283,10 @@ function copyDashboardToUser() {
}
},

hide: function () {
this.$element.removeClass('visible');
},

isWidgetAvailable: function (widgetUniqueId) {
return !$('#dashboardWidgetsArea').find('[widgetId=' + widgetUniqueId + ']').length;
},
Expand Down

0 comments on commit 5adae48

Please sign in to comment.