margin: 0 0 10px 20px;
position: relative;
}
+.event-overlay{
+ position: absolute;
+ top: 0;
+ left: 0;
+ background-color: rgba(0,0,0, 0.5);
+ width: 1110px;
+ height: 900px;
+ z-index: 999;
+}
+.loading{
+/* display: none;*/
+ height: 31px;
+ width: 128px;
+ background: url('../assets/loader.gif');
+ position: absolute;
+ top:15%;
+ left: 42%;
+ z-index: 999;
+}
#glm-event-detail-cost:before {
content: "";
background-image: url("../assets/cost-icon-24x24.png");
</div>
</div>
<!-- Calendar -->
- <div id="eventCalendar"></div>
+ <div id="eventCalendar" style='position: relative;'>
+ <div class='event-overlay'>
+ <div class="loading"></div>
+ </div>
+ </div>
</div>
type: 'POST',
url: '{$ajaxUrl}',
data: dat,
+ beforeSend: function(){ $(".event-overlay").show(); },
+ complete: function(){ $(".event-overlay").hide(); },
cache: false,
success: function (response){
var buildingEvents = [];
//var events_obj = jQuery.parseJSON(response);
var events_obj = response;
var events = events_obj.events;
-
buildingEvents = $.map(events, function(i, val) {
return {
title: i.title,
var height = 900;
// Calendar *****************************************************
$('#eventCalendar').fullCalendar({
+ loading: function( isLoading, view){
+ if( isLoading){
+ console.log("loading");
+ } else {
+
+ }
+ },
eventOrder: 'allDay',
height: height,
contentHeight: height,