From 8716fc78f3c65bbf7bcf7b574febd583bc5d2812 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 27 Feb 2012 20:44:13 +0200 Subject: [PATCH] Added loading animation for notes --- app/assets/javascripts/note.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/note.js b/app/assets/javascripts/note.js index d156b4eb..41759671 100644 --- a/app/assets/javascripts/note.js +++ b/app/assets/javascripts/note.js @@ -98,6 +98,8 @@ getContent: type: "GET", url: this.notes_path, data: "?" + this.target_params, + complete: function(){ $('.status').removeClass("loading")}, + beforeSend: function() { $('.status').addClass("loading") }, dataType: "script"}); },