Skip to content

Commit

Permalink
Merge pull request #13438 from colemanw/timeIcon
Browse files Browse the repository at this point in the history
Use icon for timepicker placeholder
  • Loading branch information
colemanw authored Jan 14, 2019
2 parents 0365eff + 0dc1b8a commit eb1da99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion css/civicrm.css
Original file line number Diff line number Diff line change
Expand Up @@ -2691,7 +2691,8 @@ div.crm-container form {
}

.crm-container input.dateplugin::placeholder,
.crm-container input.crm-form-date::placeholder {
.crm-container input.crm-form-date::placeholder,
.crm-container input.crm-form-time::placeholder {
font-family: "FontAwesome";
text-align: right;
}
Expand Down
2 changes: 1 addition & 1 deletion js/crm.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
CRM.utils.copyAttributes($dataField, $timeField, ['class', 'disabled']);
$timeField
.addClass('crm-form-text crm-form-time')
.attr('placeholder', $dataField.attr('time-placeholder') === undefined ? ts('Time') : $dataField.attr('time-placeholder'))
.attr('placeholder', $dataField.attr('time-placeholder') === undefined ? '\uf017' : $dataField.attr('time-placeholder'))
.attr('aria-label', $dataField.attr('time-placeholder') === undefined ? ts('Time') : $dataField.attr('time-placeholder'))
.change(updateDataField)
.timeEntry({
Expand Down

0 comments on commit eb1da99

Please sign in to comment.