Commit d82c3a3b36906456b7784715250423d9eb316500
1 parent
8e28e0af
Exists in
master
and in
39 other branches
Fixing user feedback on profile update
Showing
1 changed file
with
2 additions
and
14 deletions
Show diff stats
src/accounts/templates/accounts/user_update_form.html
... | ... | @@ -5,10 +5,6 @@ |
5 | 5 | <script> |
6 | 6 | $(function() { |
7 | 7 | |
8 | - // Reset buttons to default state | |
9 | - $('.set-primary').button('reset'); | |
10 | - $('.delete-email').button('reset'); | |
11 | - | |
12 | 8 | $('#add-email').on('click', function(event) { |
13 | 9 | $.ajax({ |
14 | 10 | url: "{% url 'archive_email_view' %}", |
... | ... | @@ -98,16 +94,8 @@ $(function() { |
98 | 94 | }); |
99 | 95 | |
100 | 96 | // User feedbacks |
101 | - $('.panel-default').on('click', '.set-primary', function() { | |
102 | - $('.set-primary').button('loading'); | |
103 | - }); | |
104 | - | |
105 | - $('.panel-default').on('click', '.verify-email', function() { | |
106 | - $('.verify-email').button('loading'); | |
107 | - }); | |
108 | - | |
109 | - $('.panel-default').on('click', '.delete-email', function() { | |
110 | - $('.delete-email').button('loading'); | |
97 | + $('.panel-default').on('click', '.set-primary, .verify-email, .delete-email', function() { | |
98 | + $(this).button('loading'); | |
111 | 99 | }); |
112 | 100 | |
113 | 101 | }); | ... | ... |