Commit 5bbf3aca authored by Andrew Hunt's avatar Andrew Hunt

Replace calendar GIF icon with placeholder font icon

parent d06c8ae0
......@@ -2683,12 +2683,16 @@ div.crm-container form {
/* Date plugin */
.crm-container input.dateplugin,
.crm-container input.crm-form-date {
background: white url(../i/cal.gif) no-repeat scroll right center;
padding-right: 16px;
/* so that text doesn't flow on top of icon */
width: 9em;
}
.crm-container input.dateplugin::placeholder,
.crm-container input.crm-form-date::placeholder {
font-family: "FontAwesome";
text-align: right;
}
.crm-container div.batch-update {
overflow: visible;
}
......
......@@ -58,7 +58,7 @@
if (!settings.yearRange && settings.minDate !== null && settings.maxDate !== null) {
settings.yearRange = '' + CRM.utils.formatDate(settings.minDate, 'yy') + ':' + CRM.utils.formatDate(settings.maxDate, 'yy');
}
$dateField.addClass('crm-form-date').datepicker(settings);
$dateField.addClass('crm-form-date').attr({placeholder: '\uF073'}).datepicker(settings);
} 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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment