* code for task#893.

This commit is contained in:
chencongzhi520@gmail.com
2012-09-01 08:12:43 +00:00
parent db5ea5de97
commit 953402b1c7
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -2,3 +2,12 @@ function changeDate(date)
{
location.href = createLink('user', 'todo', 'account=' + account + '&type=' + date.replace(/\-/g, ''));
}
startDate = new Date(1970, 1, 1);
$(".todo-date").datePicker({createButton:true, startDate:startDate, maxDate:'%y-%M-%d'})
.dpSetPosition($.dpConst.POS_TOP, $.dpConst.POS_LEFT)
.bind('click', function() {
$(this).dpDisplay();
this.blur();
return false;
});
+1 -1
View File
@@ -27,7 +27,7 @@
echo html::a(inLink('todo', "account=$account&type=future"), $lang->todo->futureTodos) . '<br />';
echo html::a(inLink('todo', "account=$account&type=all"), $lang->todo->allDaysTodos) . '<br />';
echo html::a(inLink('todo', "account=$account&type=before"), $lang->todo->allUndone) . '<br />';
echo html::input('date', $date, "class='w-date date' onchange=changeDate(this.value)");
echo html::input('date', $date, "class='w-date todo-date' onchange=changeDate(this.value)");
?>
</div>
</td>