From 30130b2d626d4d823ba486019fa6117845c39459 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 6 Mar 2014 20:53:41 -0500 Subject: [PATCH] set back to false when loading indicator fades out --- public/src/forum/topic.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index a83e0493ce..6ccb865b07 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -1292,8 +1292,11 @@ define(['composer', 'forum/pagination'], function(composer, pagination) { tid: tid, after: after }, function (err, data) { - infiniteLoaderActive = false; - indicatorEl.fadeOut(); + + indicatorEl.fadeOut(function() { + infiniteLoaderActive = false; + }); + if(err) { return app.alertError(err.message); }