* only update kanban when remote data is difference.

This commit is contained in:
Hao Sun
2021-12-01 08:29:33 +08:00
parent 9d7449acae
commit 229f49fc69
+3 -1
View File
@@ -829,12 +829,14 @@ $(function()
$('#group_chosen .chosen-single span').prepend(kanbanLang.laneGroup + ': ');
/* Ajax update kanban. */
var lastUpdateData;
setInterval(function()
{
$.get(createLink('execution', 'ajaxUpdateKanban', "executionID=" + executionID + "&entertime=" + entertime + "&browseType=" + browseType + "&groupBy=" + groupBy), function(data)
{
if(data)
if(data && lastUpdateData !== lastUpdateData)
{
lastUpdateData = data;
kanbanGroup = $.parseJSON(data);
if(groupBy == 'default')
{