diff --git a/assets/Zed/js/modules/main.js b/assets/Zed/js/modules/main.js index f8cba1ed..703c38d5 100644 --- a/assets/Zed/js/modules/main.js +++ b/assets/Zed/js/modules/main.js @@ -8,17 +8,11 @@ require('ZedGui'); $(document).ready(function () { - - var dateOfBirth = $('#customer_date_of_birth'); - - dateOfBirth.datepicker({ + $('#customer_date_of_birth').datepicker({ dateFormat: 'yy-mm-dd', changeMonth: true, numberOfMonths: 3, - maxDate: dateOfBirth.val(), - defaultData: 0, - onClose: function (selectedDate) { - dateOfBirth.datepicker('option', 'minDate', selectedDate); - } + maxDate: 0, + defaultData: 0 }); });