Skip to content

Commit

Permalink
Merge pull request #17664 from jitendrapurohit/core-1829
Browse files Browse the repository at this point in the history
dev/core#1829 - Custom Date field with format=yy displays calendar ic…
  • Loading branch information
mlutfy authored Jun 25, 2020
2 parents ca7d72a + 5b7dd00 commit 833e552
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/crm.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
} else {
$dateField.attr('min', settings.minDate ? CRM.utils.formatDate(settings.minDate, 'yy') : '1000');
$dateField.attr('max', settings.maxDate ? CRM.utils.formatDate(settings.maxDate, 'yy') : '4000');
placeholder = null;
}
// Set placeholder as calendar icon (`fa-calendar` is Unicode f073)
$dateField.attr({placeholder: placeholder === undefined ? '\uF073' : placeholder}).change(updateDataField);
Expand Down

0 comments on commit 833e552

Please sign in to comment.