cleanup of task widget - make jquery workflow a bit smoother

This commit is contained in:
redmatrix
2015-08-20 20:40:42 -07:00
parent afbbc9cd72
commit 49c4aa1a54
3 changed files with 44 additions and 34 deletions

View File

@@ -927,10 +927,10 @@ function tasks_fetch($arr) {
$ret = array();
$sql_extra = " and event_status != 'COMPLETED' ";
if(argc() > 1 && argv(1) === 'all')
if($arr && $arr['all'] == 1)
$sql_extra = '';
$r = q("select * from event where type = 'task' and uid = %d $sql_extra ",
$r = q("select * from event where type = 'task' and uid = %d $sql_extra order by created desc",
intval(local_channel())
);