aboutsummaryrefslogtreecommitdiffstats
path: root/apps/tasks/index.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-22 20:21:27 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-22 20:21:27 +0100
commit18bac944b4b0a63e99f6b6971de6ae788d3e39f1 (patch)
treead3b7d39992346f27eb5af9b0c6eef95d01ab0fb /apps/tasks/index.php
parent92db4f8be099c32b477bba33412b1d2fc7a04dbc (diff)
downloadnextcloud-server-18bac944b4b0a63e99f6b6971de6ae788d3e39f1.tar.gz
nextcloud-server-18bac944b4b0a63e99f6b6971de6ae788d3e39f1.zip
Change loading of tasks to ajax call
Diffstat (limited to 'apps/tasks/index.php')
-rw-r--r--apps/tasks/index.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/tasks/index.php b/apps/tasks/index.php
index f0e6c2e4ddb..3e324e797f8 100644
--- a/apps/tasks/index.php
+++ b/apps/tasks/index.php
@@ -18,29 +18,6 @@ if( count($calendars) == 0 ) {
exit;
}
-$id = isset( $_GET['id'] ) ? $_GET['id'] : null;
-
-$tasks = array();
-foreach( $calendars as $calendar ){
- $calendar_tasks = OC_Calendar_Object::all($calendar['id']);
- foreach( $calendar_tasks as $task ){
- if($task['objecttype']!='VTODO'){
- continue;
- }
- if(is_null($task['summary'])){
- continue;
- }
- $tasks[] = array( 'name' => $task['summary'], 'id' => $task['id'] );
- }
-}
-
-$details = null;
-if( !is_null($id) || count($tasks)){
- if(is_null($id)) $id = $tasks[0]['id'];
- $task = OC_Calendar_Object::find($id);
- $details = Sabre_VObject_Reader::read($task['calendardata'])->VTODO;
-}
-
OC_UTIL::addScript('tasks', 'tasks');
OC_UTIL::addStyle('tasks', 'style');
OC_APP::setActiveNavigationEntry('tasks_index');
@@ -48,8 +25,5 @@ OC_APP::setActiveNavigationEntry('tasks_index');
$l10n = new OC_L10N('tasks');
$priority_options = OC_Task_App::getPriorityOptions();
$output = new OC_Template('tasks', 'tasks', 'user');
-$output->assign('tasks', $tasks);
-$output->assign('details', $details);
$output->assign('priority_options', $priority_options);
-$output->assign('id',$id);
$output -> printPage();