98_todoist: bugfix forsorting

git-svn-id: https://svn.fhem.de/fhem/trunk@20987 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
marvin78
2020-01-15 07:50:53 +00:00
parent 5e05b14b8d
commit 3a2fffa977

View File

@@ -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();