CC-3960: Day of week text is missing from monthly Calendar view

-fixed
This commit is contained in:
denise 2012-06-11 15:08:02 -04:00
parent 16b6f09420
commit d348d21c10
2 changed files with 4 additions and 6 deletions

View File

@ -91,16 +91,15 @@ denise@denise-DX4860:~/airtime/airtime_mvc/public/js/fullcalendar$ diff -u fullc
clearEvents();
}
- updateCells(firstTime);
+ getOffset();
+ getOffset(firstTime);
}
-
-
+ function getOffset() {
+ function getOffset(firstTime) {
+ var timezoneOffset;
+ $.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:function(data) {
+ timezoneOffset = data.calendarInit.timezoneOffset*1000;
+ var firstTime = !body;
+ updateCells(firstTime, timezoneOffset);
+ }, error:function(jqXHR, textStatus, errorThrown){}});
+ }

View File

@ -2187,14 +2187,13 @@ function BasicView(element, calendar, viewName) {
}else{
clearEvents();
}
getOffset();
getOffset(firstTime);
}
function getOffset() {
function getOffset(firstTime) {
var timezoneOffset;
$.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:function(data) {
timezoneOffset = data.calendarInit.timezoneOffset*1000;
var firstTime = !body;
updateCells(firstTime, timezoneOffset);
}, error:function(jqXHR, textStatus, errorThrown){}});
}