Provide ajax link to tasks.
authorJan Schneider <jan@horde.org>
Wed, 28 Oct 2009 13:09:13 +0000 (14:09 +0100)
committerJan Schneider <jan@horde.org>
Wed, 28 Oct 2009 14:54:20 +0000 (15:54 +0100)
nag/lib/Api.php

index 9bd63de..2a62e3e 100644 (file)
@@ -1151,7 +1151,8 @@ class Nag_Api extends Horde_Registry_Api
     /**
      * Lists active tasks as time objects.
      *
-     * @param array $categories  The time categories (from listTimeObjectCategories) to list.
+     * @param array $categories  The time categories (from
+     *                           listTimeObjectCategories) to list.
      * @param mixed $start       The start date of the period.
      * @param mixed $end         The end date of the period.
      */
@@ -1189,8 +1190,9 @@ class Nag_Api extends Horde_Registry_Api
                 'end' => $due_date,
                 'category' => $task->category,
                 'params' => array('task' => $task->id,
-                'tasklist' => $task->tasklist),
-                'link' => Horde_Util::addParameter(Horde::applicationUrl('view.php', true), array('tasklist' => $task->tasklist, 'task' => $task->id)));
+                                  'tasklist' => $task->tasklist),
+                'link' => Horde_Util::addParameter(Horde::applicationUrl('view.php', true), array('tasklist' => $task->tasklist, 'task' => $task->id)),
+                'ajax_link' => 'task:' . $task->tasklist . ':' . $task->id);
         }
 
         return $timeobjects;