diff --git a/app/assets/javascripts/app/controllers/maintenance.coffee b/app/assets/javascripts/app/controllers/maintenance.coffee index 8a556414a..666be1929 100644 --- a/app/assets/javascripts/app/controllers/maintenance.coffee +++ b/app/assets/javascripts/app/controllers/maintenance.coffee @@ -38,7 +38,9 @@ class Index extends App.ControllerContent setMode: (e) => value = @modeSetting.prop('checked') - return if value && !confirm('Sure?') + if value && !confirm('Sure?') + @modeSetting.prop('checked', false) + return value App.Setting.set('maintenance_mode', value) App.WebSocket.send( event:'maintenance'