- bugfix: not working checkbox to complete the task

This commit is contained in:
Max Pozdeev 2009-10-22 16:25:46 +04:00
parent 3121148bcd
commit a39bba8d29

View file

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