Skip to main content

Search and Top Navigation

#4610 closed enhancement (wontfix)

Opened June 17, 2009 08:25AM UTC

Closed June 22, 2009 02:25AM UTC

Last modified October 11, 2012 09:15PM UTC

Holidays highlight in ui.datepicker

Reported by: antonello.pasella@gmail.com 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-it.js (2.1 KB) - added by antonello.pasella@gmail.com June 17, 2009 08:59AM UTC.

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

  • ui.datepicker.js (68.5 KB) - added by antonello.pasella@gmail.com June 17, 2009 08:59AM UTC.

    A 1.7.2 modified version of ui.datepicker.js

Change History (5)

Changed June 17, 2009 09:01AM UTC by antonello.pasella@gmail.com comment:1

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.regional['bg']);

$("#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

Changed June 17, 2009 09:16AM UTC by antonello.pasella@gmail.com comment:2

Replying to [comment:1 antonello.pasella@…]:

There is a bug changing the regional settings at runtime

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

Changed June 17, 2009 09:17AM UTC by antonello.pasella@gmail.com comment:3

Replying to [comment:1 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)

Changed June 22, 2009 02:25AM UTC by kbwood comment:4

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.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:5

milestone: TBD

Milestone TBD deleted