Skip to content

Commit

Permalink
Update tjrContentUI.js
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbung authored Sep 23, 2019
1 parent e8cbf89 commit 8a9c445
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tjreports/site/assets/js/tjrContentUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ jQuery.extend(tjrContentUI.report, {
var responseHTML = jQuery(response['html']).find(containerSel).html();
jQuery(containerSel).html(responseHTML);

// If plg_system_sendemail enable
if (typeof tjutilitysendemail != 'undefined')
// If sendEmail plug is enabled then try to add a column of checkboxes
if (
typeof tjutilitysendemail != 'undefined' &&
jQuery('body').find('.td-sendemail').length > 0
)
{
// If sendEmail plug is enabled then try to add a column of checkboxes
if (jQuery('body').find('.td-sendemail').length)
{
tjutilitysendemail.addColumn('report-table');
}
tjutilitysendemail.addColumn('report-table');
}

// Reinitialze some js like for calandar, tooltip, chosen
Expand Down

0 comments on commit 8a9c445

Please sign in to comment.