Search and Top Navigation
#4814 closed bug (wontfix)
Opened August 29, 2009 04:45AM UTC
Closed September 04, 2009 06:48AM UTC
Last modified October 11, 2012 09:15PM UTC
'Today' doesn't show properly in button panel
Reported by: | tommyhp2 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.7.2 |
Keywords: | date picker button panel | Cc: | |
Blocked by: | Blocking: |
Description
Hi,
When I have these settings on, the 'Today' doesn't show properly in the button panel. It shows as 'T24028a09' which seems like T + today's dd/mm/yy garbled in.
Here are my settings:
$("#datepicker").datepicker( {
buttonImage : 'resources/images/jquery/calendar.gif',
buttonImageOnly : true,
buttonText : 'Choose',
changeMonth : true,
changeYear : true,
closeText : 'Done',
constrainInput : true,
currentText : 'Today',
dateFormat : 'mm/dd/yy',
defaultDate : '+2',
duration : 'fast',
firstDay : 1,
gotoCurrent : false,
hidelfNoPrevNext : false,
isRTL : false,
maxDate : '+2m',
minDate : '-1',
navigationAsDateFormat : true,
nextText : 'Next',
numberOfMonths : 1,
prevText : 'Prev',
shortYearCutoff : '+10',
showAnim : 'show',
showButtonPanel : true,
showCurrentAtPos : 0,
showMonthAfterYear : false,
showOn : 'both',
showOptions: {direction: 'up' },
stepMonths : 1,
yearRange : '-10:+10'
});
Thanks,
Tommy
Attachments (1)
Change History (6)
Changed September 04, 2009 06:48AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
Changed September 04, 2009 06:52AM UTC by comment:2
There should be two extra single quotes at the end of the previous example - Wiki formatting dropped them!
Changed September 12, 2009 12:21AM UTC by comment:3
Replying to [comment:1 kbwood]:
The navigationAsDateFormat setting applies to the previous, next, and today links. To retain the value of 'Today' you need to quote the value so that it doesn't get parsed and replaced: currentText: '\\'Today\\''
I've commented out the currentText to use the script's default. The problem persists. Please see attachment for problem. The attachment is a sample of a layout that I intend to use in some of my pages.
Thanks,
Tommy
Changed April 03, 2012 03:04PM UTC by comment:4
With the next configuration the today button don't have problem
Datepicker
$('#datepicker').datepicker({
showButtonPanel: true,
});
But if you add other parameter like "navigationAsDateFormat"
Datepicker
$('#datepicker').datepicker({
showButtonPanel: true,
navigationAsDateFormat: true,
});
The the text buttom show a number not a text.
Changed October 11, 2012 09:15PM UTC by comment:6
milestone: | TBD |
---|
Milestone TBD deleted
The navigationAsDateFormat setting applies to the previous, next, and today links. To retain the value of 'Today' you need to quote the value so that it doesn't get parsed and replaced:
currentText: '\\'Today\\''