Increase throttle value

pull/1/head
yflory 4 years ago
parent ea13b40698
commit f8add72f63

@ -143,7 +143,7 @@ define([
kanban.inEditMode = false; kanban.inEditMode = false;
addEditItemButton(framework, kanban); addEditItemButton(framework, kanban);
}; };
var _updateBoardsThrottle = Util.throttle(_updateBoards, 500); var _updateBoardsThrottle = Util.throttle(_updateBoards, 1000);
var updateBoards = function (framework, kanban, boards) { var updateBoards = function (framework, kanban, boards) {
if ((now() - _lastUpdate) > 5000) { if ((now() - _lastUpdate) > 5000) {
_updateBoards(framework, kanban, boards); _updateBoards(framework, kanban, boards);
@ -859,7 +859,7 @@ define([
// If the rendering has changed, update the value and redraw // If the rendering has changed, update the value and redraw
kanban.options.tagsAnd = tagsAnd; kanban.options.tagsAnd = tagsAnd;
_tagsAnd = tagsAnd; _tagsAnd = tagsAnd;
updateBoards(kanban.options.boards); updateBoards(framework, kanban, kanban.options.boards);
}); });
if (migrated) { framework.localChange(); } if (migrated) { framework.localChange(); }

Loading…
Cancel
Save