Commit 8716fc78f3c65bbf7bcf7b574febd583bc5d2812
1 parent
cd5c4bac
Exists in
master
and in
4 other branches
Added loading animation for notes
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/assets/javascripts/note.js
... | ... | @@ -98,6 +98,8 @@ getContent: |
98 | 98 | type: "GET", |
99 | 99 | url: this.notes_path, |
100 | 100 | data: "?" + this.target_params, |
101 | + complete: function(){ $('.status').removeClass("loading")}, | |
102 | + beforeSend: function() { $('.status').addClass("loading") }, | |
101 | 103 | dataType: "script"}); |
102 | 104 | }, |
103 | 105 | ... | ... |