Indefero

Indefero Commit Details


Date:2012-03-05 17:05:12 (12 years 9 months ago)
Author:Simon Holywell
Branch:develop
Commit:0e52a2e67331b9c175c23041fbc124c07a345f1c
Parents: c2d61083a72316a2c026c6715292fa68ad7803a9
Message:Setup a simple JS shortcut to insert todays date for the due date

Changes:

File differences

src/IDF/Views/Issue.php
668668
669669
670670
671
671672
672673
673674
'previous_issue_id' => $previous_issue_id,
'next_issue_id' => $next_issue_id,
'related_issues' => $related_issues,
'date_today' => date('Y-m-d 23:59'),
),
$arrays),
$request);
src/IDF/templates/idf/issues/view.html
131131
132132
133133
134
134135
135136
136137
......
214215
215216
216217
217
218
219
220
221
218222
219223
220224
<th>{$form.f.due_dtime.labelTag}:</th>
<td>{if $form.f.due_dtime.errors}{$form.f.due_dtime.fieldErrors}{/if}
{$form.f.due_dtime|unsafe}
<a href="#" rel="{$date_today}" id="due_dtime_today">Today</a>
</td>
<tr>
<tr>
<script type="text/javascript">
{literal}
$(document).ready(function(){
$("#due_dtime_today").click(function(){
$('#id_due_dtime').val($(this).attr('rel'));
return false;
});
// Hide the upload forms, we insert before the first attach file
// row an "Attach File" little link.
// We hide all the rows.

Archive Download the corresponding diff file

Page rendered in 0.08771s using 13 queries.