{literal}
<script type="text/javascript">
- (function($) {
+ (function($, _) {
var context = {/literal}"{$context}"{literal};
CRM.$('table.contact-activity-selector-' + context).data({
"ajax": {
}
});
$(function($) {
+ $('table.contact-activity-selector-' + context).on('xhr.dt', function(e, settings, json, xhr) {
+ for (var i=0, ien=json.data.length; i<ien; i++) {
+ json.data[i].subject = _.escape(json.data[i].subject);
+ }
+ });
$('.activity-search-options :input').change(function(){
- CRM.$('table.contact-activity-selector-' + context).DataTable().draw();
+ $('table.contact-activity-selector-' + context).DataTable().draw();
});
});
- })(CRM.$);
+ })(CRM.$, CRM._);
</script>
{/literal}
<style type="text/css">