From 853e56a2ab5b65ae32a37ec211183baa6ecee12e Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Wed, 16 Jan 2013 00:21:46 +0000 Subject: [PATCH] * view todo in colorbox. --- module/user/js/todo.js | 2 ++ module/user/view/todo.html.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module/user/js/todo.js b/module/user/js/todo.js index 5655fe9dce..7b3d9c4671 100644 --- a/module/user/js/todo.js +++ b/module/user/js/todo.js @@ -11,3 +11,5 @@ $(".todo-date").datePicker({createButton:true, startDate:startDate, maxDate:'%y- this.blur(); return false; }); + +$(".colorbox").colorbox({width:960, height:600, iframe:true, speed:350, scrolling:true}); diff --git a/module/user/view/todo.html.php b/module/user/view/todo.html.php index 0d60c92bd4..59a0c562d5 100644 --- a/module/user/view/todo.html.php +++ b/module/user/view/todo.html.php @@ -14,6 +14,7 @@ +requestType == 'GET' ? '&onlybody=yes' : '?onlybody=yes';?> @@ -55,7 +56,7 @@ - +
date == '2030-01-01' ? $lang->todo->dayInFuture : $todo->date;?> todo->typeList[$todo->type];?> pri;?>'>pri?>id", $todo->name)) echo $todo->name;?>createLink('todo', 'view', "id=$todo->id") . $onlybody, $todo->name, '', "class='colorbox'");?> begin;?> end;?> todo->statusList[$todo->status];?>