summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/profile.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/profile.js.coffee')
-rw-r--r--app/assets/javascripts/profile.js.coffee10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/javascripts/profile.js.coffee b/app/assets/javascripts/profile.js.coffee
new file mode 100644
index 00000000000..e536afad939
--- /dev/null
+++ b/app/assets/javascripts/profile.js.coffee
@@ -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)