Skip to content

Commit

Permalink
Merge pull request #4553 from spryker/bugfix/cc-1760-on-zed-calendar-…
Browse files Browse the repository at this point in the history
…control-works-incorrectly-during-customers-birthday-updating

CC-1760 On Zed a calendar control works incorrectly during customers' birthday updating
  • Loading branch information
tamasnyulas authored Jan 9, 2019
2 parents 3866168 + 8f03313 commit 111fa2b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions assets/Zed/js/modules/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});

0 comments on commit 111fa2b

Please sign in to comment.