Permalink
Browse files

Merge pull request #2 from damian/master

Incorrect month number for multiple calendars
  • Loading branch information...
2 parents a85ce7d + ddf0adb commit b1e4fc89c5a6c77b90a45da0b5262d0f91cecf46 @ded committed Nov 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 calender.js
View
4 calender.js
@@ -89,7 +89,7 @@
this.$calendar.delegate('.date-month-next', 'click', function (e) {
var y = parseFloat(self.$calendar.find('.date-current-year').html())
- , m = getMonthNumberFromName($('.date-current-month').html())
+ , m = getMonthNumberFromName(self.$calendar.find('.date-current-month').html())
if ((m == 12)) ++y && (m = 0)
self.setDate(months[m] + ' 1,' + y)
})
@@ -178,4 +178,4 @@
})
}
}, true)
-}(ender);
+}(ender);

0 comments on commit b1e4fc8

Please sign in to comment.