v1.2.x v1.2.3
Adam Shaw 2009-10-14 05:22:49 +00:00
parent df4828e05d
commit e2f3c6e74a
3 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,7 @@
version 1.2.3 (10/13/09)
- fixed <button> postback bug when calendar is within a <form>
version 1.2.2 (9/21/09) version 1.2.2 (9/21/09)
- backport of gcal max-results bug - backport of gcal max-results bug

View File

@ -285,7 +285,7 @@
if (bo) { // "button options" if (bo) { // "button options"
var buttons = $("<div class='full-calendar-buttons'/>").appendTo(header); var buttons = $("<div class='full-calendar-buttons'/>").appendTo(header);
if (bo == true || bo.today !== false) { if (bo == true || bo.today !== false) {
todayButton = $("<button class='today' />") todayButton = $("<button class='today' type='button' />")
.append($("<span />").html( .append($("<span />").html(
typeof bo.today == 'string' ? typeof bo.today == 'string' ?
bo.today : "today")) bo.today : "today"))
@ -293,7 +293,7 @@
buttons.append(todayButton); buttons.append(todayButton);
} }
if (bo.prevYear) { if (bo.prevYear) {
var b = $("<button class='prev-year' />") var b = $("<button class='prev-year' type='button' />")
.append($("<span />") .append($("<span />")
.html(typeof bo.prevYear == 'string' ? .html(typeof bo.prevYear == 'string' ?
bo.prevYear : "&laquo;")) bo.prevYear : "&laquo;"))
@ -302,7 +302,7 @@
else buttons.append(b); else buttons.append(b);
} }
if (bo == true || bo.prevMonth !== false) { if (bo == true || bo.prevMonth !== false) {
var b = $("<button class='prev-month' />") var b = $("<button class='prev-month' type='button' />")
.append($("<span />") .append($("<span />")
.html(typeof bo.prevMonth == 'string' ? .html(typeof bo.prevMonth == 'string' ?
bo.prevMonth : (r2l ? "&gt;" : "&lt;"))) bo.prevMonth : (r2l ? "&gt;" : "&lt;")))
@ -311,7 +311,7 @@
else buttons.append(b); else buttons.append(b);
} }
if (bo == true || bo.nextMonth !== false) { if (bo == true || bo.nextMonth !== false) {
var b = $("<button class='next-month' />") var b = $("<button class='next-month' type='button' />")
.append($("<span />").html(typeof bo.nextMonth == 'string' ? .append($("<span />").html(typeof bo.nextMonth == 'string' ?
bo.nextMonth : (r2l ? "&lt;" : "&gt;"))) bo.nextMonth : (r2l ? "&lt;" : "&gt;")))
.click(nextMonth); .click(nextMonth);
@ -319,7 +319,7 @@
else buttons.append(b); else buttons.append(b);
} }
if (bo.nextYear) { if (bo.nextYear) {
var b = $("<button class='next-year' />") var b = $("<button class='next-year' type='button' />")
.append($("<span />").html(typeof bo.nextYear == 'string' .append($("<span />").html(typeof bo.nextYear == 'string'
? bo.nextYear : "&raquo;")) ? bo.nextYear : "&raquo;"))
.click(nextYear); .click(nextYear);

View File

@ -1 +1 @@
1.2.2 1.2.3