need to show and hide the loading gif as well as the overlay for the events calendar...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Oct 2016 16:29:25 +0000 (12:29 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Oct 2016 16:29:25 +0000 (12:29 -0400)
views/front/events/agenda.html

index 917192d..47b3315 100644 (file)
                 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 = [];