summaryrefslogtreecommitdiff
path: root/app/views/profiles/preferences/update.js.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/preferences/update.js.erb')
-rw-r--r--app/views/profiles/preferences/update.js.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/profiles/preferences/update.js.erb b/app/views/profiles/preferences/update.js.erb
index 431ab9d052b..8966dd3fd86 100644
--- a/app/views/profiles/preferences/update.js.erb
+++ b/app/views/profiles/preferences/update.js.erb
@@ -1,3 +1,7 @@
+// Remove body class for any previous theme, re-add current one
+$('body').removeClass('<%= Gitlab::Themes.body_classes %>')
+$('body').addClass('<%= user_application_theme %>')
+
// Toggle container-fluid class
if ('<%= current_user.layout %>' === 'fluid') {
$('.content-wrapper .container-fluid').removeClass('container-limited')