From bd7b2082f2f53b096cfe195cc730fc6c6693bb10 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Tue, 15 Jan 2013 09:11:01 +0000 Subject: [PATCH] * view todo in colorbox. --- module/my/js/todo.js | 1 + module/my/view/todo.html.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/my/js/todo.js b/module/my/js/todo.js index f3f2ffe72c..695d8315ea 100644 --- a/module/my/js/todo.js +++ b/module/my/js/todo.js @@ -19,3 +19,4 @@ function changeAction(formName, actionName, actionLink) $('#' + formName).attr('action', actionLink).submit(); } +$(".colorbox").colorbox({width:960, height:600, iframe:true, speed:350, scrolling:true}); diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index 6cfbc3f8ba..e353b800fd 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -12,6 +12,7 @@ ?> +requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';?>
@@ -78,7 +79,7 @@ date == '2030-01-01' ? $lang->todo->dayInFuture : $todo->date;?> todo->typeList[$todo->type];?> pri;?>'>pri?> - createLink('todo', 'view', "id=$todo->id&from=my"), $todo->name);?> + createLink('todo', 'view', "id=$todo->id&from=my") . $onlybody, $todo->name, '', "class='colorbox'");?> begin;?> end;?> todo->statusList[$todo->status];?>