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:
Pistos 2011-11-10 00:48:50 -05:00
parent 31b43f315e
commit 5f73cdc67d

View file

@ -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) {