Skip to content

Commit

Permalink
Merge pull request #487 from civicrm/yashodha-patch-1
Browse files Browse the repository at this point in the history
fix console error for extended reports
  • Loading branch information
deb1990 authored Nov 12, 2021
2 parents e7628a6 + 4d45011 commit 3e7e46c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/add-missing-date-addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ CRM.$(function () {
* @param {Object} input The jQuery object for the input
*/
function addDateAddonToInput (input) {
var placeholderWithoutCalendar = input.attr('placeholder').replace('', '');

if (input.attr('placeholder')) {
var placeholderWithoutCalendar = input.attr('placeholder').replace('', '');
}

CRM.$('<span class="addon fa fa-calendar"></span>')
.insertAfter(input)
.css('margin-top', input.css('margin-top'))
Expand Down

0 comments on commit 3e7e46c

Please sign in to comment.