CC-3960: Day of week text is missing from monthly Calendar view
-fixed
This commit is contained in:
parent
16b6f09420
commit
d348d21c10
2 changed files with 4 additions and 6 deletions
|
@ -91,16 +91,15 @@ denise@denise-DX4860:~/airtime/airtime_mvc/public/js/fullcalendar$ diff -u fullc
|
||||||
clearEvents();
|
clearEvents();
|
||||||
}
|
}
|
||||||
- updateCells(firstTime);
|
- updateCells(firstTime);
|
||||||
+ getOffset();
|
+ getOffset(firstTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
+ function getOffset() {
|
+ function getOffset(firstTime) {
|
||||||
+ var timezoneOffset;
|
+ var timezoneOffset;
|
||||||
+ $.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:function(data) {
|
+ $.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:function(data) {
|
||||||
+ timezoneOffset = data.calendarInit.timezoneOffset*1000;
|
+ timezoneOffset = data.calendarInit.timezoneOffset*1000;
|
||||||
+ var firstTime = !body;
|
|
||||||
+ updateCells(firstTime, timezoneOffset);
|
+ updateCells(firstTime, timezoneOffset);
|
||||||
+ }, error:function(jqXHR, textStatus, errorThrown){}});
|
+ }, error:function(jqXHR, textStatus, errorThrown){}});
|
||||||
+ }
|
+ }
|
||||||
|
|
|
@ -2187,14 +2187,13 @@ function BasicView(element, calendar, viewName) {
|
||||||
}else{
|
}else{
|
||||||
clearEvents();
|
clearEvents();
|
||||||
}
|
}
|
||||||
getOffset();
|
getOffset(firstTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getOffset() {
|
function getOffset(firstTime) {
|
||||||
var timezoneOffset;
|
var timezoneOffset;
|
||||||
$.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:function(data) {
|
$.ajax({ url: "/Api/calendar-init/format/json", dataType:"json", success:function(data) {
|
||||||
timezoneOffset = data.calendarInit.timezoneOffset*1000;
|
timezoneOffset = data.calendarInit.timezoneOffset*1000;
|
||||||
var firstTime = !body;
|
|
||||||
updateCells(firstTime, timezoneOffset);
|
updateCells(firstTime, timezoneOffset);
|
||||||
}, error:function(jqXHR, textStatus, errorThrown){}});
|
}, error:function(jqXHR, textStatus, errorThrown){}});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue