From 49c4aa1a546264fa39754ae8a7c08243a6896b04 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 20 Aug 2015 20:40:42 -0700 Subject: cleanup of task widget - make jquery workflow a bit smoother --- include/widgets.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index 7433a1ec8..5e70730a3 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1047,17 +1047,17 @@ function widget_tasklist($arr) { require_once('include/event.php'); - $o .= ''; - $o .= ''; - $o .= '
' . '

' . t('Tasks') . '

'; - $x = tasks_fetch(array()); - - if($x['success']) { - foreach($x['tasks'] as $y) { - $o .= '
' . $y['summary'] . '
'; + $o .= ''; + $o .= ''; + + $o .= '
' . '

' . t('Tasks') . '

'; + $o .= '
'; $o .= '
'; return $o; -- cgit v1.2.3