var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='snippet=4&className=CRM_Campaign_Page_AJAX&fnName=voterList' }"{literal};
var searchVoterFor = {/literal}'{$searchVoterFor}'{literal};
- var $context = CRM.$('form#{/literal}{$form.formName}{literal}');
- CRM.$( 'table.gotvVoterRecords', $context ).dataTable({
+ CRM.$( 'table.gotvVoterRecords', 'form#{/literal}{$form.formName}{literal}').dataTable({
"bFilter" : false,
"bAutoWidth" : false,
"bProcessing": true,
}
}
noRecordFoundMsg += searchQill.join('<span class="font-italic"> ...AND... </span></div><div class="qill">');
- var $context = CRM.$('#campaignList');
- CRM.$('table.campaigns', $context).dataTable({
+ CRM.$('table.campaigns', '#campaignList').dataTable({
"bFilter": false,
"bAutoWidth": false,
"bProcessing": false,
var count = 0;
var searchQill = new Array( );
for ( param in searchParams ) {
- if ( val = CRM.$( '#' + param ).val( ) ) {
- if ( param == 'petition_campaign_id' ) val = campaigns[val];
- searchQill[count++] = searchParams[param] + ' : ' + val;
- }
+ if ( val = CRM.$( '#' + param ).val( ) ) {
+ if ( param == 'petition_campaign_id' ) val = campaigns[val];
+ searchQill[count++] = searchParams[param] + ' : ' + val;
+ }
}
noRecordFoundMsg += searchQill.join( '<span class="font-italic"> ...AND... </span></div><div class="qill">' );
- var $context = CRM.$('#petitionList');
- CRM.$( 'table.petitions', $context ).dataTable({
+ CRM.$( 'table.petitions', '#petitionList').dataTable({
"bFilter" : false,
"bAutoWidth" : false,
"bProcessing": false,
var count = 0;
var searchQill = new Array( );
for ( param in searchParams ) {
- if ( val = CRM.$( '#' + param ).val( ) ) {
- if ( param == 'activity_type_id' ) val = surveyTypes[val];
- if ( param == 'survey_campaign_id' ) val = surveyCampaigns[val];
- searchQill[count++] = searchParams[param] + ' : ' + val;
- }
+ if ( val = CRM.$( '#' + param ).val( ) ) {
+ if ( param == 'activity_type_id' ) val = surveyTypes[val];
+ if ( param == 'survey_campaign_id' ) val = surveyCampaigns[val];
+ searchQill[count++] = searchParams[param] + ' : ' + val;
+ }
}
noRecordFoundMsg += searchQill.join( '<span class="font-italic"> ...AND... </span></div><div class="qill">' );
- var $context = CRM.$('#surveyList');
- CRM.$( 'table.surveys', $context).dataTable({
+ CRM.$( 'table.surveys', '#surveyList').dataTable({
"bFilter" : false,
"bAutoWidth" : false,
"bProcessing": false,