What steps will reproduce the problem?
1. click on the image that open the calendar
2. select one month | select one year
3. click outside the calendar
What is the expected output? What do you see instead?
Expected result: the newer date into the textfield.
Instead: old date
suggested solution:
File: calendar_data_select.js
Line: 152
Code:
if (this.options.get("month_year")=="dropdowns") {
this.month_select = new SelectBox(header_div, $R(0,11).map(function(m){return [Date.months[m], m]}), {
className: "month",
name:"month",
onchange: function () {
mysv=document.getElementsByName("month_year_selector_label")[0];
d=mysv.value.toString();
d=d.substring(d.length-2,d.length)
mint=parseInt(document.getElementsByName("month")[0].value)+1;
m=( mint >= 10 ? ("") : ("0"))+(mint)
y=document.getElementsByName("year")[0].value
document.getElementsByName("month_year_selector_label")[0].value= y+"-"+m+"-"+ d;
this.navMonth(this.month_select.getValue())
}.bindAsEventListener(this),
});
this.year_select = new SelectBox(header_div, [], {className: "year", onchange: function () {
mysv=document.getElementsByName("month_year_selector_label")[0];
d=mysv.value.toString();
d=d.substring(d.length-2,d.length)
mint=parseInt(document.getElementsByName("month")[0].value)+1;
m=( mint >= 10 ? ("") : ("0"))+(mint)
y=document.getElementsByName("year")[0].value
document.getElementsByName("month_year_selector_label")[0].value= y+"-"+m+"-"+ d;
this.navYear(this.year_select.getValue())
}.bindAsEventListener(this),name:"year"});
this.populateYearRange();
} else {
[.....]
Mail: preth00nker [a-t] gmail [d-o-t] com
See ya!
Original issue reported on code.google.com by Preth00n...@gmail.com on 11 Aug 2010 at 8:10
Original issue reported on code.google.com by
Preth00n...@gmail.com
on 11 Aug 2010 at 8:10