mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
- bugfix: not working checkbox to complete the task
This commit is contained in:
parent
3121148bcd
commit
a39bba8d29
1 changed files with 1 additions and 0 deletions
|
|
@ -205,6 +205,7 @@ function completeTask(id,ch)
|
|||
var compl = 0;
|
||||
if(ch.checked) compl = 1;
|
||||
setAjaxErrorTrigger();
|
||||
var nocache = '&rnd='+Math.random();
|
||||
$.getJSON('ajax.php?completeTask='+id+'&compl='+compl+nocache, function(json){
|
||||
resetAjaxErrorTrigger();
|
||||
if(!parseInt(json.total)) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue