Skip to content

Commit

Permalink
CRM-21380 - JS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw authored Dec 6, 2017
1 parent b5407aa commit ba49604
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions templates/CRM/Admin/Form/Preferences/Display.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,10 @@
$('#contact_edit_preferences').val(params.toString());
}

//show/hide activity types based on checkbox value
if ($('#activity_assignee_notification').is(":checked")) {
$('.crm-preferences-display-form-activity_types').show();
}
else {
$('.crm-preferences-display-form-activity_types').hide();
}
// show/hide activity types based on checkbox value
$('.crm-preferences-display-form-activity_types').toggle($('#activity_assignee_notification').is(":checked"));
$('#activity_assignee_notification').click(function() {
$('.crm-preferences-display-form-activity_types').toggle($('#activity_assignee_notification').is(":checked"));
$('.crm-preferences-display-form-activity_types').toggle($(this).is(":checked"));
});

var invoicesKey = '{/literal}{$invoicesKey}{literal}';
Expand Down

0 comments on commit ba49604

Please sign in to comment.