taitems / Aristo-jQuery-UI-Theme

The "Aristo" theme for Cappuccino ported to a jQuery UI Theme

Home Page:http://taitems.github.com/Aristo-jQuery-UI-Theme/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defaultDate option in datepicker is not being respected

rveloso opened this issue · comments

I've tried
$('#from').datepicker({
dateFormat: 'yy-mm-dd',
defaultDate: '+1w'
});

and even putting a Date object there and the field is always empty ..

actually there are two problems: the current date is not highlighted in the calendar, and the defaultDate also does not get highlighted in the calendar.

I'm seeing this problem as well. If I use the markup below with the Aristo theme, and the input value is blank, when I click on the field and the calendar pops up, the current date isn't selected by default. If I swap out the Aristo with the Cupertino theme for example, then the current date is selected by default on the calendar.

$("#dueDate").datepicker({
numberOfMonths: 2
});

Due Date:

@rveloso I was able to fix one of these two issues in a pull request I just submitted. This will cause the current date to have a 1px border around it using the .ui-state-active color, unless the current value in the input field and the current date are the same, in which case the whole table cell has the .ui-state-active color set with a white font.

@rveloso I was able to fix your other issue where the value you pass in using defaultDate wasn't being highlighted to the user.

Not sure how often @taitems accepts pull requests, looks like one has been outstanding for a while, so if you need these fixes feel free to pull from my fork.

I believe this is fixed now and the issue can be closed