setting the date limit to three days out for the ajax events widget
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 8 Feb 2018 16:16:56 +0000 (11:16 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 8 Feb 2018 16:16:56 +0000 (11:16 -0500)
fixing the events widget to 3 days out

glm-member-db-events/views/front/events/sidebarEvents.html

index 4183dac..ae5805b 100644 (file)
@@ -29,7 +29,7 @@ jQuery(document).ready(function($) {
                     var num = 0;
                     var count = 0;
                     $.each(data.array_dates, function(index, value){
-                        if(count > 3){
+                        if(count > 4){
                             return false;
                         }
     
@@ -45,7 +45,7 @@ jQuery(document).ready(function($) {
 
                         // value is an event
                         $.each(value, function(i, v){
-                            console.log(v[count])
+    
                             var location = (v[count].location) ? "@&nbsp;"+v[count].location : '';
                             var event = $("<div class='sidebar-event group-" + num + "'><div class='sidebar-event-info-container'> <div class='sidebar-event-name'><a class='sidebar-url' href='"+v[count].url + "'>" + v[count].name  + "</a><span>&nbsp;"+  location +"</span></div></div></div>");
                              container.append(event);