diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-23 17:30:41 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-25 14:03:40 -0400 |
commit | c597b5d09d7ce9d91d6e4e171302611298f59d35 (patch) | |
tree | 3c0e3802d9ac23008e82529e696b5a0c2112d284 /app/views/profiles | |
parent | 3f2f40aa43b0c6cad18a8ea0c002da0e4e9a44df (diff) | |
download | gitlab-ce-c597b5d09d7ce9d91d6e4e171302611298f59d35.tar.gz |
Fix Profile > Design live-updating
`ui_blue` wasn't added to the list of classes to remove, so if a user
changed to that theme, any subsequent changes wouldn't be live-updated.
This change refactors Gitlab::Theme a bit to make it harder for this to
happen in the future with new themes.
Diffstat (limited to 'app/views/profiles')
-rw-r--r-- | app/views/profiles/update.js.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/update.js.erb b/app/views/profiles/update.js.erb index e664ac2a52a..f3729058e76 100644 --- a/app/views/profiles/update.js.erb +++ b/app/views/profiles/update.js.erb @@ -1,5 +1,5 @@ // Remove body class for any previous theme, re-add current one -$('body').removeClass('ui_basic ui_mars ui_modern ui_gray ui_color light_theme dark_theme') +$('body').removeClass('<%= Gitlab::Theme.body_classes %>') $('body').addClass('<%= app_theme %> <%= theme_type %>') // Re-render the header to reflect the new theme |