2015-10-24 18:46:33 +05:30
|
|
|
// Toggle container-fluid class
|
|
|
|
if ('<%= current_user.layout %>' === 'fluid') {
|
2016-11-03 12:29:30 +05:30
|
|
|
$('.content-wrapper .container-fluid').removeClass('container-limited')
|
2015-10-24 18:46:33 +05:30
|
|
|
} else {
|
2016-11-03 12:29:30 +05:30
|
|
|
$('.content-wrapper .container-fluid').addClass('container-limited')
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
// Re-enable the "Save" button
|
|
|
|
$('input[type=submit]').enable()
|
|
|
|
|
|
|
|
// Show the notice flash message
|
|
|
|
new Flash('<%= flash.discard(:notice) %>', 'notice')
|