fixing sytanx error in the ajax method when called the loading icon gif during the...
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Oct 2016 17:16:02 +0000 (13:16 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Oct 2016 17:16:02 +0000 (13:16 -0400)
css/front.css
views/front/events/agenda.html

index 43ea77f..38442f8 100644 (file)
@@ -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');
index f7a792f..47b3315 100644 (file)
                 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 = [];