fix bug 32844.

This commit is contained in:
Julia Radzhabova 2016-07-25 14:49:35 +03:00
parent 7e1b5517d7
commit 0eb78262ce

View file

@ -919,6 +919,19 @@ define([
// internal // internal
updateComments: function (needRender, disableSort) { 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; var i, end = true;
if (_.isUndefined(disableSort)) { if (_.isUndefined(disableSort)) {