diff --git a/python/nav/web/static/js/src/webfront.js b/python/nav/web/static/js/src/webfront.js index ae36bb173a..a2ddaa2e8c 100644 --- a/python/nav/web/static/js/src/webfront.js +++ b/python/nav/web/static/js/src/webfront.js @@ -210,7 +210,8 @@ require([ function addDefaultDashboardListener(feedback) { var defaultDashboardContainer = $('#default-dashboard-container'), setDefaultDashboardForm = $('#form-set-default-dashboard'), - isDefaultDashboardAlert = defaultDashboardContainer.find('.alert-box'); + isDefaultDashboardAlert = defaultDashboardContainer.find('.alert-box'), + deleteDashboardForm = $('#form-delete-dashboard'); if (defaultDashboardContainer.data('is-default-dashboard')) { setDefaultDashboardForm.hide(); @@ -226,6 +227,7 @@ require([ feedback.addFeedback(responseText); setDefaultDashboardForm.hide(); isDefaultDashboardAlert.show(); + deleteDashboardForm.hide(); $dashboardNavigator.find('.fa-star').addClass('hidden'); $dashboardNavigator.find('.current .fa-star').removeClass('hidden'); }); diff --git a/python/nav/web/templates/webfront/index.html b/python/nav/web/templates/webfront/index.html index 9e71e96999..01d42e9bdf 100644 --- a/python/nav/web/templates/webfront/index.html +++ b/python/nav/web/templates/webfront/index.html @@ -144,7 +144,7 @@