From 997872cb36086535e4eae4c7467129e6ca5012f8 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 5 Oct 2016 13:16:02 -0400 Subject: [PATCH] fixing sytanx error in the ajax method when called the loading icon gif during the calendar ajax request --- css/front.css | 4 ++-- views/front/events/agenda.html | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/css/front.css b/css/front.css index 43ea77f..38442f8 100644 --- a/css/front.css +++ b/css/front.css @@ -193,7 +193,7 @@ input[name='contact_fname'], input[name='contact_lname']{ position: relative; } .event-overlay{ -/* display: none;*/ + display: none; position: absolute; top: 0; left: 0; @@ -203,7 +203,7 @@ input[name='contact_fname'], input[name='contact_lname']{ z-index: 999; } .loading{ -/* display: none;*/ + display: none; height: 13px; width: 208px; background: url('../assets/loader.gif'); diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index f7a792f..47b3315 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -109,14 +109,14 @@ type: 'POST', url: '{$ajaxUrl}', data: dat, -// beforeSend: function(){ -// $(".event-overlay").show(); -// $(".loading").show(); -// }, -// complete: function(){ -// $(".event-overlay").hide(); -// $(".loading").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