2012-11-21 15:01:40 -05:00
|
|
|
// Remove body class for any previous theme, re-add current one
|
2014-12-14 20:01:59 -05:00
|
|
|
$('body').removeClass('ui_basic ui_mars ui_modern ui_gray ui_color light_theme dark_theme')
|
|
|
|
$('body').addClass('<%= app_theme %> <%= theme_type %>')
|
2012-11-21 15:01:40 -05:00
|
|
|
|
|
|
|
// 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'})
|