testing timestamp added to ajax post for the front end events calendar
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 30 Aug 2016 14:45:42 +0000 (10:45 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 30 Aug 2016 14:45:42 +0000 (10:45 -0400)
views/front/events/agenda.html

index 17902c0..218b095 100644 (file)
 //                    $("#eventCalendar").fullCalendar('addEventSource', buildingEvents);
 //                }
 //            });
-            jQuery.post('{$ajaxUrl}', dat, function (response){
+            var timestamp = $.now();
+            var url = '{$ajaxUrl}' + '?t=' + timestamp;
+            jQuery.post(url, dat, function (response){
                 var buildingEvents = [];
                     var events_obj = jQuery.parseJSON(response);
                     var events = events_obj.events;