Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-24 00:30:41 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-25 21:03:40 +0300
commitc597b5d09d7ce9d91d6e4e171302611298f59d35 (patch)
tree3c0e3802d9ac23008e82529e696b5a0c2112d284 /app/views/profiles
parent3f2f40aa43b0c6cad18a8ea0c002da0e4e9a44df (diff)
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.erb2
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