From 3a2fffa97705fed9def303eb6b1bc40332b6d75f Mon Sep 17 00:00:00 2001 From: marvin78 Date: Wed, 15 Jan 2020 07:50:53 +0000 Subject: [PATCH] 98_todoist: bugfix forsorting git-svn-id: https://svn.fhem.de/fhem/trunk@20987 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/todoist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/www/pgm2/todoist.js b/fhem/www/pgm2/todoist.js index d04b9d6c4..8966543a1 100644 --- a/fhem/www/pgm2/todoist.js +++ b/fhem/www/pgm2/todoist.js @@ -320,7 +320,7 @@ if (typeof todoist_checkVar === 'undefined') { var id = $(parent).attr('id'); var name = id.split(/_(.+)/)[1]; //if (ui.item.attr('data-remove')==1) ui.item.remove(); - //todoist_refreshTable(name,1); + todoist_refreshTable(name,1); todoist_refreshTableWidth(); }, remove: function (event,ui) { @@ -359,7 +359,7 @@ if (typeof todoist_checkVar === 'undefined') { todoist_sendCommand('set '+ nameF +' moveTask ID:' + id + ' projectID=' + pid); setTimeout(function(){ todoist_refreshTable(nameR,1); - },100); + },200); ui.item.attr('data-remove','1'); } }).disableSelection();