Merge pull request #2030 from tsigo/theme_feedback

Improve user feedback on the Profile > Design page
This commit is contained in:
Dmitriy Zaporozhets 2012-11-21 12:54:22 -08:00
commit 7392d28dca
7 changed files with 73 additions and 12 deletions

View file

@ -0,0 +1,10 @@
$ ->
$('.edit_user .application-theme input, .edit_user .code-preview-theme input').click ->
# Hide any previous submission feedback
$('.edit_user .update-feedback').hide()
# Submit the form
$('.edit_user').submit()
# Go up the hierarchy and show the corresponding submission feedback element
$(@).closest('fieldset').find('.update-feedback').show('highlight', {color: '#DFF0D8'}, 500)