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