From 0eb78262ce7183381181f8ea2c68f25fdea642cd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 25 Jul 2016 14:49:35 +0300 Subject: [PATCH] fix bug 32844. --- apps/common/main/lib/controller/Comments.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps/common/main/lib/controller/Comments.js b/apps/common/main/lib/controller/Comments.js index a4510b8ab..7098fb6e6 100644 --- a/apps/common/main/lib/controller/Comments.js +++ b/apps/common/main/lib/controller/Comments.js @@ -919,6 +919,19 @@ define([ // internal updateComments: function (needRender, disableSort) { + var me = this; + me.updateCommentsTime = new Date(); + if (me.timerUpdateComments===undefined) + me.timerUpdateComments = setInterval(function(){ + if ((new Date()) - me.updateCommentsTime>100) { + clearInterval(me.timerUpdateComments); + me.timerUpdateComments = undefined; + me.updateCommentsView(needRender, disableSort); + } + }, 25); + }, + + updateCommentsView: function (needRender, disableSort) { var i, end = true; if (_.isUndefined(disableSort)) {