Skip to main content

Search and Top Navigation

#4000 closed bug (wontfix)

Opened January 30, 2009 12:38PM UTC

Closed March 31, 2009 01:58AM UTC

Datepicker onChangeMonthYear problem

Reported by: Miroku_87 Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.6rc5
Keywords: onChangeMonthYear page loading Cc: miroku_87@yahoo.it
Blocked by: Blocking:
Description

Hi everyone,

on the site I'm developping I need to refresh my page passing new GET parameters when a user choose a month from my datepicker calendar.

Since months label aren't linkable I decided to use the onChangeMonthYear event.

The problem is this: this event occures even at the page loading.

In my situation, so the fact that I refresh the page when the event occure, I get an infinite loop and that's too bad, 'cause I don't know other way to detect just the month and the year (I don't need the day for now) and I didn't find yet a way to avoid the problem with other systems.

Here is the example page: http://www.phyrosia.com/cose/SCPfansite

Hope this will be useful to you.

Attachments (0)
Change History (3)

Changed February 12, 2009 11:44PM UTC by jzaefferer comment:1

milestone: TBD1.6

Changed March 08, 2009 02:40PM UTC by rdworth comment:2

milestone: 1.71.8

Changed March 31, 2009 01:58AM UTC by kbwood comment:3

resolution: → wontfix
status: newclosed

This site doesn't seem to use the datpicker plugin any more.

What you could have done is to not action the refresh until loading/initialisation has finished, via a flag perhaps:

var loading = true;

$(function() {

$('#calendario').datepicker({onChangeMonthYear: refreshPage});

loading = false;

});

function refreshPage() {

if (!loading) {

...

}

}