From: Coleman Watts Date: Sat, 12 Jan 2019 01:04:56 +0000 (-0500) Subject: Use icon for timepicker placeholder X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0dc1b8ae677c527001c6574847056ee108f68661;p=civicrm-core.git Use icon for timepicker placeholder --- diff --git a/css/civicrm.css b/css/civicrm.css index 324b44c431..73e5e72fd8 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -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; } diff --git a/js/crm.datepicker.js b/js/crm.datepicker.js index 0ae8f0b743..ccb64c6aee 100644 --- a/js/crm.datepicker.js +++ b/js/crm.datepicker.js @@ -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({