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

update.js.erb « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e664ac2a52ab81cd0cb1f128664ff86909bb8ab3 (plain)
1
2
3
4
5
6
7
8
9
// 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').addClass('<%= app_theme %> <%= theme_type %>')

// Re-render the header to reflect the new theme
$('header').html('<%= escape_javascript(render("layouts/head_panel", title: "Profile")) %>')

// Re-initialize header tooltips
$('.has_bottom_tooltip').tooltip({placement: 'bottom'})