Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#4610 closed enhancement (wontfix)

Holidays highlight in ui.datepicker

Reported by: antonello.pasella@… Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

A patch to allow regionalized holidays to be highlighted in datepicker instances

Attachments (2)

ui.datepicker.js (68.5 KB) - added by antonello.pasella@… 10 years ago.
A 1.7.2 modified version of ui.datepicker.js
ui.datepicker-it.js (2.1 KB) - added by antonello.pasella@… 10 years ago.
A 1.7.2 modified version of ui.datepicker-it.js working with Italian official holidays

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by antonello.pasella@…

Attachment: ui.datepicker.js added

A 1.7.2 modified version of ui.datepicker.js

Changed 10 years ago by antonello.pasella@…

Attachment: ui.datepicker-it.js added

A 1.7.2 modified version of ui.datepicker-it.js working with Italian official holidays

comment:1 Changed 10 years ago by antonello.pasella@…

There is a bug changing the regional settings at runtime

Code like this (demo localization.html in demos) $(function() {

$.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional[])); $("#datepicker").datepicker($.datepicker.regionalbg?); $("#locale").change(function() {

$('#datepicker').datepicker('option', $.extend({showMonthAfterYear: false},

$.datepicker.regional[$(this).val()]));

});

});

does not revert to default isHoliday : function(date) {return false;} but keep Italian holidays. Someone would help me to debug?

See

comment:2 in reply to:  1 ; Changed 10 years ago by antonello.pasella@…

Replying to antonello.pasella@…:

There is a bug changing the regional settings at runtime

It's a bug related to the demo, see #4612

comment:3 in reply to:  2 Changed 10 years ago by antonello.pasella@…

Replying to antonello.pasella@…:

There is a bug changing the regional settings at runtime

It's a bug related to the demo, see / Ticket #4612

(sorry, previous link was malformed)

comment:4 Changed 10 years ago by kbwood

Resolution: wontfix
Status: newclosed

This functionality is already provided by the beforeShowDay setting and is currently more flexible in that it allows you to assign any CSS class to individual days. Formatting of individual days should be up to the end user and not dictated by the localisation.

comment:5 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.