From 0e3ff2493ec604e764093426208abf2e6680125b Mon Sep 17 00:00:00 2001 From: alext Date: Sun, 3 Jun 2018 15:58:44 +0200 Subject: [PATCH] Backend settings are not being displayed on page load when the user is not an admin (#497). --- CHANGELOG.md | 1 + src/assets/js/backend_settings.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5ecd4f..9b315ae4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - #483: In backend, calendar for providers become unselectable if switched to calendar for service. - #491: Replace hardcoded string with translation in appointment details email template. - #495: Database migration fixes (from 1.2.1 to 1.3.x). +- #497: Backend settings are not being displayed on page load when the user is not an admin. ## [1.3.0] diff --git a/src/assets/js/backend_settings.js b/src/assets/js/backend_settings.js index 9d8f250a..d66b6c10 100644 --- a/src/assets/js/backend_settings.js +++ b/src/assets/js/backend_settings.js @@ -102,8 +102,8 @@ window.BackendSettings = window.BackendSettings || {}; if (bindEventHandlers) { _bindEventHandlers(); - $('#settings-page .nav li').first().addClass('active'); - $('#settings-page .nav li').first().find('a').trigger('click'); + var $link = $('#settings-page .nav li').not('.hidden').first().find('a'); + $link.tab('show'); } // Apply Privileges