From 47c163916d3f2ebfe7b8b769927e26078fd88706 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 5 Oct 2016 12:29:25 -0400 Subject: [PATCH] need to show and hide the loading gif as well as the overlay for the events calendar ajax request --- views/front/events/agenda.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index 917192d..47b3315 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -109,8 +109,14 @@ type: 'POST', url: '{$ajaxUrl}', data: dat, - beforeSend: function(){ $(".event-overlay").show(); }, - complete: function(){ $(".event-overlay").hide(); }, + beforeSend: function(){ + $(".event-overlay").show(); + $(".loading").show(); + }, + complete: function(){ + $(".event-overlay").hide(); + $(".loading").hide(); + }, cache: false, success: function (response){ var buildingEvents = []; -- 2.17.1