I understand that this is rather a late answer, but I just ran into this problem and the solution turned out to be the same as a charm.
However, the button style issue is caused by the jQuery ui classes. I added the following code for the click text-input action:
$('.date').click(function() { $('button.ui-datepicker-current').removeClass('ui-priority-secondary').addClass('ui-priority-primary'); });
This removes the wrong class and adds the correct key to the button, making it the same as the Finish button. It doesn't matter which theme you use. For completeness, here is all my code:
$('.date').datepicker({ dateFormat: 'yy-mm-dd', showButtonPanel: true }).click(function() { $('button.ui-datepicker-current').removeClass('ui-priority-secondary').addClass('ui-priority-primary'); }); $('button.ui-datepicker-current').live('click', function() { $.datepicker._curInst.input.datepicker('setDate', new Date()).datepicker('hide').blur(); });
Just add <input type="text" class="date" value="" /> and you will be fine.
AvanOsch Feb 05 '12 at 20:32 2012-02-05 20:32
source share