2012-11-21 20:01:40 +00:00
|
|
|
$ ->
|
|
|
|
$('.edit_user .application-theme input, .edit_user .code-preview-theme input').click ->
|
|
|
|
# Submit the form
|
|
|
|
$('.edit_user').submit()
|
|
|
|
|
2013-08-27 09:18:53 +00:00
|
|
|
new Flash("Appearance settings saved", "notice")
|
2012-12-02 11:29:24 +00:00
|
|
|
|
|
|
|
$('.update-username form').on 'ajax:before', ->
|
|
|
|
$('.loading-gif').show()
|
|
|
|
$(this).find('.update-success').hide()
|
|
|
|
$(this).find('.update-failed').hide()
|
|
|
|
|
|
|
|
$('.update-username form').on 'ajax:complete', ->
|
2013-03-27 18:07:52 +00:00
|
|
|
$(this).find('.btn-save').enableButton()
|
2012-12-02 11:29:24 +00:00
|
|
|
$(this).find('.loading-gif').hide()
|
2013-08-27 09:18:53 +00:00
|
|
|
|
2013-03-27 18:07:52 +00:00
|
|
|
$('.update-notifications').on 'ajax:complete', ->
|
|
|
|
$(this).find('.btn-save').enableButton()
|