Only show post deletion spinner when the AJAX call actually gets underway (i.e. not when the user cancels the deletion).
This commit is contained in:
parent
31b43f315e
commit
5f73cdc67d
1 changed files with 4 additions and 4 deletions
|
|
@ -44,10 +44,10 @@
|
|||
self.deletePostLink.click(function(evt) {
|
||||
evt.preventDefault();
|
||||
|
||||
$([
|
||||
self.deletePostLink,
|
||||
self.hidePostLoader
|
||||
]).toggleClass("hidden");
|
||||
self.hidePostLoader.ajaxStart( function() {
|
||||
self.deletePostLink.addClass("hidden");
|
||||
$(this).removeClass('hidden');
|
||||
} );
|
||||
});
|
||||
|
||||
self.focusCommentLink.click(function(evt) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue