Improve the issue due date field with JS helpers

- Add jQuery UI datepicker widget to the field
- Duplicate changes on the create an issue template
This commit is contained in:
Simon Holywell
2012-03-08 15:03:02 +00:00
parent 9beffaae7e
commit f005bc1ddd
20 changed files with 406 additions and 1 deletions

View File

@@ -215,6 +215,16 @@
<script type="text/javascript">
{literal}
$(document).ready(function(){
$("#id_due_dtime").datepicker({
changeYear: true,
changeMonth: true,
yearRange: '-0:+5',
constrainInput: true,
dateFormat: 'yy-mm-dd',
onSelect: function(dateText, inst) {
this.value = dateText + ' 23:59';
}
});
$("#due_dtime_today").click(function(){
$('#id_due_dtime').val($(this).attr('rel'));
return false;