From: Anthony Talarico Date: Tue, 31 Jan 2017 19:05:39 +0000 (-0500) Subject: removing past dates from the date picker since the widget is for upcoming events X-Git-Tag: v1.6.11^2~1^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=950ab1d33b3625a73c9f0bbf46e89e613a4a2ecf;p=WP-Plugins%2Fglm-member-db-events.git removing past dates from the date picker since the widget is for upcoming events --- diff --git a/views/front/events/sidebarEvents.html b/views/front/events/sidebarEvents.html index ea8fc03..70f7ba8 100644 --- a/views/front/events/sidebarEvents.html +++ b/views/front/events/sidebarEvents.html @@ -63,12 +63,13 @@ } }); } - + var dateToday = new Date(); // get the year and month from the datepicker's dropdown jQuery('#sidebar-date-select').datepicker( { changeMonth: true, changeYear: true, showButtonPanel: true, + minDate: dateToday, dateFormat: 'Y-m', onChange: function(dateText, inst) { var month = jQuery("#ui-datepicker-div .ui-datepicker-month :selected").val();