* code for task#893.
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user