* if date is today, type = 'today';

This commit is contained in:
zhujinyong
2012-10-15 02:26:29 +00:00
parent a31f01cda4
commit 84d87388ef
+1
View File
@@ -30,6 +30,7 @@
echo '<span id="before">' . html::a(inlink('todo', "date=before&account={$app->user->account}&status=undone"), $lang->todo->allUndone) . '</span>';
echo "<span id='bydate'>" . html::input('date', $date, "class='w-date date' onchange=changeDate(this.value)") . '</span>';
?>
<?php if($date == date('Y-m-j')) $type = 'today';?>
<script>$('#<?php echo $type;?>').addClass('active')</script>
</div>
<div class='f-right'>