Hello,

The Prev button in the date popup picker shows a bit of code if start date of the date picker is set to "today".

I want to build a booking form for ski equipment. Naturally you can't book things earlier than today. It seems that if you can't browse earlier than the date that shows as default, the "prev" button should be disabled instead of missing? :)

CommentFileSizeAuthor
bugg1.png8.35 KBBoletus

Comments

new_B’s picture

Hi I have been experiencing this issue as well, in relation to using the Datepicker with Webform's date pop-up component. After doing a webform upgrade to the latest version, I started experiencing this issue due to the change in how the pop-up component behaved for min./max. date selections. This applies to Date 6.x-2.8 as well. My original issues was posted at http://drupal.org/node/1352014.

Can datepicker.css be updated to take into account situations when the earliest date or latest date possible are selected? The text, "Prev" and "Next" are showing up (not hidden) as in the screenshot provided in my ticket at http://drupal.org/node/1352014 as well as Boletus' one above.

Thanks.

new_B’s picture

Version: 6.x-2.7 » 6.x-2.8
karens’s picture

Status: Active » Closed (won't fix)

Webform controls its own datepicker. I assume it also controls its own css. Date has nothing to do with the Webform datepicker.

Unless someone can demonstrate that something in the Date module is affecting this (and I know of no way that it could be), this is a won't fix for Date.

new_B’s picture

Status: Closed (won't fix) » Active

Hi, Just following up with the reply. (Making it active again, in case it won't be seen if it's closed...)

Boletus did not mention use of webform though he is getting a similar issue.

Webform datepicker's popup component does use datepicker.css from the Date module so I believe it does affect it. From what I see (I may be wrong) datepicker.css does not take into account min/max. values in the calendar and incorrectly displays the "Prev", "Next" text even though there are no "Prev", "Next" destinations, when the min./max. dates are selected respectively.

This issue was made apparent due to a change in Webform's min./max. generated code behaviour; it use to display links that would go back to the beginning/end so the "Prev" and "Next" arrow images were displayed and were hyperlinked. In the updated Webform, the min./max. "Prev", "Next" options are not hyperlinked to anywhere.

The relevant code in datepicker.css:

.ui-datepicker-next, .ui-datepicker-prev {
  background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; /* LTR */
  left: .5em; /* LTR */
  position: absolute;
  top: .5em;
}
.ui-datepicker-next a, .ui-datepicker-prev a {
  background: url(images/888888_7x7_arrow_left.gif) 50% 50% no-repeat; /* LTR */
  border: 1px solid #d3d3d3;
  cursor: pointer;
  display: block;
  font-size: 1em;
  height: 1.4em;
  text-indent: -999999px;
  width: 1.3em;
}

So the "Prev" and "Next" text are only hidden if they are hyperlinked. With the min./max. date selected, in the updated webform module, the "Prev" and "Next" are no longer hyperlinked. The grey background box is showing up and the text "Prev" and "Next" are showing up instead of the arrows. So, either it needs to be removed altogether or greyed out with arrows.

Thanks.

jiv_e’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Thank you for your contributions! I'm cleaning up the issue queue. There has been no activity for a while on this issue so I'll close it for now. Please feel free to reopen if needed.