Ticket #1694 (closed defect: fixed)

Opened 2 years ago

Last modified 20 months ago

date not updating in DropdownDatePicker when startDate is used

Reported by: tk Owned by: tk
Priority: normal Milestone: 0.9
Component: General Version: 0.4
Severity: normal Keywords:
Cc:

Description

test case #1 in test_DropdownDatePicker.html displays this

Change History

Changed 2 years ago by peller

  • version changed from 0.3 to 0.4
  • milestone changed from 0.4.1 to 0.5

Changed 2 years ago by lutz at onlinetravel dot ch

The comparison on line 180 of DropdownDatePicker?.js function _updateText() appears to be faulty

if(this.value<this.datePicker.startDate||this.value>this.datePicker.endDate){

is always true for startDates after 1. Jan. 1970 (this.value is null)

Possible fix:

if(this.inputNode.value<this.datePicker.startDate||this.inputNode.value>this.datePicker.endDate){

Changed 22 months ago by ktiedt

  • status changed from new to closed
  • resolution set to fixed

(In [7138]) references Changeset #7108 fixes #1694 this patch cleans up the CSS of DatePicker? to fix naming consistency and also fixed a problem with the selected date not highlighting.

Changed 21 months ago by peller

  • status changed from closed to reopened
  • resolution deleted

this appears to have regressed?

Changed 21 months ago by tk

Changed 21 months ago by ktiedt

  • status changed from reopened to closed
  • resolution set to fixed

(In [7542]) Fixes #1694 Fixes #1692 Finally found and fixed these 2 bugs... Test case updated to remove the "known bug" test case text.

Changed 20 months ago by guest

  • status changed from closed to reopened
  • resolution deleted

Confirm this behaviour in 0.4.1 and 0.4.2, e.g: <input name="validTil" dojoType="dropdowndatepicker" widgetId="validTil" containerToggle="explode"> works, while <input name="validTil" dojoType="dropdowndatepicker" widgetId="validTil" containerToggle="explode" startDate="2006-10-10"> will not work (despite the working example, I can copy and paste the source code and it will not work in a new html page). When the form is viewed at with the web developer extension for firefox, using Form->View Form Details, it appears as if the named control holds the correct value, but is hidden except for the button to open the date picker, and an unnamed form field is created and displayed, but it's value is empty. Sorry if I am reopening resolved issues, but in case there is a resoltion for this behaviour, it needs to be documented.

Changed 20 months ago by tk

  • status changed from reopened to closed
  • resolution set to fixed

Next time, try trunk. No where does this ticket claim it was fixed in 0.4.2 and if you are reopening a ticket, you should provide contact information as well.

Note: See TracTickets for help on using tickets.