Indefero

Indefero Commit Details


Date:2012-04-10 06:17:22 (12 years 8 months ago)
Author:Simon Holywell
Branch:develop
Commit:1690fa8416af30191dd32556d18bdd7cba5b35b0
Parents: 9168a26a72960842369b5781acd533118869683f
Message:Move the default due date time to be configurable in the IDF config file

Changes:

File differences

src/IDF/Views/Issue.php
475475
476476
477477
478
478
479
479480
480481
481482
......
713714
714715
715716
716
717
718
717719
718720
719721
'page_title' => $title,
'preview' => $preview,
'issue' => new IDF_Issue(),
'date_today' => date('Y-m-d 23:59')
'date_today' => date('Y-m-d'),
'default_time' => Pluf::f('issue_default_due_date_time'),
),
self::autoCompleteArrays($prj)
);
'previous_issue_id' => $previous_issue_id,
'next_issue_id' => $next_issue_id,
'related_issues' => $related_issues,
'date_today' => date('Y-m-d 23:59'),
'date_today' => date('Y-m-d'),
'default_time' => Pluf::f('issue_default_due_date_time'),
),
$arrays),
$request);
src/IDF/conf/idf.php-dist
544544
545545
546546
547
548
549
550
547551
548552
# high enough to show a proper activity index for those projects as well.
$cfg['activity_lookback'] = 7;
# Configure the default time that should be used when setting an issue due date
# via the quick (COB, EOW, etc) menu or via the date picker
$cfg['issue_default_due_date_time'] = '17:30';
return $cfg;
src/IDF/templates/idf/issues/create.html
6666
6767
6868
69
69
7070
7171
7272
......
112112
113113
114114
115
115116
116117
117118
......
121122
122123
123124
124
125
125126
126127
127128
<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>
<a href="#" rel="{$date_today} {$default_time}" id="due_dtime_today">Today</a>
</td>
<tr>
<th>{$form.f.relation_type0.labelTag}:</th>
{/block}
{block javascript}
<script type="text/javascript">
var default_time = '{$default_time}';
document.getElementById('id_summary').focus();{literal}
$(document).ready(function(){
$("#id_due_dtime").datepicker({
constrainInput: false,
dateFormat: 'yy-mm-dd',
onSelect: function(dateText, inst) {
this.value = dateText + ' 23:59';
this.value = dateText + ' ' + default_time;
}
});
$("#due_dtime_today").click(function(){
src/IDF/templates/idf/issues/view.html
131131
132132
133133
134
134
135135
136136
137137
......
213213
214214
215215
216
216217
217218
218219
......
222223
223224
224225
225
226
226227
227228
228229
<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>
<a href="#" rel="{$date_today} {$default_time}" id="due_dtime_today">Today</a>
</td>
<tr>
<tr>
{/block}
{block javascript}{if $form}{include 'idf/issues/js-autocomplete.html'}
<script type="text/javascript">
var default_time = '{$default_time}';
{literal}
$(document).ready(function(){
$("#id_due_dtime").datepicker({
constrainInput: false,
dateFormat: 'yy-mm-dd',
onSelect: function(dateText, inst) {
this.value = dateText + ' 23:59';
this.value = dateText + ' ' + default_time;
}
});
$("#due_dtime_today").click(function(){

Archive Download the corresponding diff file

Page rendered in 0.08783s using 13 queries.