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

update.js.erb « preferences « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 431ab9d052b989fedd2bff41f6c568f17054dbc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Toggle container-fluid class
if ('<%= current_user.layout %>' === 'fluid') {
  $('.content-wrapper .container-fluid').removeClass('container-limited')
} else {
  $('.content-wrapper .container-fluid').addClass('container-limited')
}

// Re-enable the "Save" button
$('input[type=submit]').enable()

// Show the notice flash message
new Flash('<%= flash.discard(:notice) %>', 'notice')