gitlab-org--gitlab-foss/app/views/profiles/preferences/update.js.erb
2015-06-13 17:59:12 -04:00

9 lines
328 B
Text

// Remove body class for any previous theme, re-add current one
$('body').removeClass('<%= Gitlab::Themes.body_classes %>')
$('body').addClass('<%= user_application_theme %>')
// Re-enable the "Save" button
$('input[type=submit]').enable()
// Show the notice flash message
new Flash('<%= flash.discard(:notice) %>', 'notice')