- // center on date
- var args = location.href.replace(baseurl, "").split("/");
- if (modparams == 2) {
- if (args.length >= 5) {
- $("#events-calendar").fullCalendar("gotoDate", args[3], args[4] - 1);
- }
- } else {
- if (args.length >= 4) {
- $("#events-calendar").fullCalendar("gotoDate", args[2], args[3] - 1);
- }
- }
-