2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

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 5747362f94
commit e105e07514

View File

@ -320,7 +320,7 @@ if (typeof todoist_checkVar === 'undefined') {
var id = $(parent).attr('id'); var id = $(parent).attr('id');
var name = id.split(/_(.+)/)[1]; var name = id.split(/_(.+)/)[1];
//if (ui.item.attr('data-remove')==1) ui.item.remove(); //if (ui.item.attr('data-remove')==1) ui.item.remove();
//todoist_refreshTable(name,1); todoist_refreshTable(name,1);
todoist_refreshTableWidth(); todoist_refreshTableWidth();
}, },
remove: function (event,ui) { remove: function (event,ui) {
@ -359,7 +359,7 @@ if (typeof todoist_checkVar === 'undefined') {
todoist_sendCommand('set '+ nameF +' moveTask ID:' + id + ' projectID=' + pid); todoist_sendCommand('set '+ nameF +' moveTask ID:' + id + ' projectID=' + pid);
setTimeout(function(){ setTimeout(function(){
todoist_refreshTable(nameR,1); todoist_refreshTable(nameR,1);
},100); },200);
ui.item.attr('data-remove','1'); ui.item.attr('data-remove','1');
} }
}).disableSelection(); }).disableSelection();