Project

General

Profile

Actions

Defect #13841

closed

Today button in date picker does not work

Added by Regis Tremblay over 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

The today button in the date picker doesn't work in redmine 2.3.0 stable.
It is greyed out and nothing happen when clicking on it.

Am I the only one with that problem.
I use Bitnami Redmine stack 2.3.0.

Environment:
  Redmine version                          2.3.0.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.13
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  redmine_knowledgebase                    2.2.0
  redmine_people                           0.1.6
Actions #1

Updated by Filou Centrinov over 11 years ago

It's working.
Try this: Switch the month in the calendar. Now press the today button and the calendar will show current month. The today button does not close the widget or insert a value into the date field. The today button is greyed out, this is correct.

Actions #2

Updated by Regis Tremblay over 11 years ago

  • Status changed from New to Resolved

Ok so unlike the v1.3, that button do not actually put the date in the field.
Thank you very much.

Actions #3

Updated by Etienne Massip over 11 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid
Actions #4

Updated by Anonymous over 11 years ago

This functionality as currently implemented is not intuitive to the user. Could I suggest that the today button is only greyed out when today is current selected? If today is not currently selected, the today button should not be greyed out and clicking it should snap the date picker to today.

I would also suggest changing the outline of the date for today from blue to red, this will provide contrast to the user so they can see the difference between what is currently selected and what today's date is.

Lastly, clicking on a date in the date picker should not close the widget. The widget should only close when selecting done. These changes will make using the date picker widget very intuitive to the user.

Actions #5

Updated by Mischa The Evil over 11 years ago

Jason E wrote:

This functionality as currently implemented is not intuitive to the user. [...]

[...] These changes will make using the date picker widget very intuitive to the user.

I see your point, though the problem with this is that Redmine uses the stock jQuery UI Datepicker widget (http://jqueryui.com/datepicker/) and I don't think it is a good idea to start patching third-party components inside Redmine (again). Ideally, these enhancements shall be implemented upstream.
Please open a new issue if there is a need to discuss this further because this issue is closed since the functionality is working as expected as Filou outlined in note-1.

Actions #6

Updated by dj jones over 11 years ago

It may not be necessary to change the upstream jQuery code, if trying to change the datePicker functionality.

See the solution proposed by Walter on this page: (it's a couple of years old, so possibly may not work in latest datePicker ?)

- http://stackoverflow.com/questions/1073410/today-button-in-jquery-datepicker-doesnt-work

See his section starting:
" I don't like the solution of modifying the jQuery source code because it removes the ability to use a CDN. Instead, you can reassign the _gotoToday function...

Actions

Also available in: Atom PDF