1 // https://civicrm.org/licensing
5 $('#crm-main-content-wrapper').crmSnippet('refresh');
9 if (CRM
.config
.ajaxPopupsEnabled
) {
10 CRM
.loadForm(url
).on('crmFormSuccess', refresh
);
13 window
.location
= url
;
18 .on('change', 'select[name=add_activity_type_id]', function() {
20 $(this).select2('val', '');