--removed the variable context
authorDivya Jose <divya@divya.(none)>
Tue, 20 May 2014 07:07:18 +0000 (12:37 +0530)
committerDivya Jose <divya@divya.(none)>
Tue, 20 May 2014 07:08:17 +0000 (12:38 +0530)
templates/CRM/Campaign/Form/Gotv.tpl
templates/CRM/Campaign/Form/Search/Campaign.tpl
templates/CRM/Campaign/Form/Search/Petition.tpl
templates/CRM/Campaign/Form/Search/Survey.tpl

index 932fecf79cb0a10fe2e5f498b138da2822b1d93f..45446c613de8a528483c29013ef33027c1f732c7 100755 (executable)
@@ -120,8 +120,7 @@ function loadVoterList( )
      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,
index 4b649568c8b0814ac982d1fc27ec85eb79f65f0f..0fa3a7f083c561f91581739252428a751928cb13 100755 (executable)
       }
     }
     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,
index 2dd48b7d7cae1885ac5ae313c539cdba75065c5d..8781688ed13907582ec9faf3da2914494e0f7437 100755 (executable)
@@ -166,14 +166,13 @@ function loadPetitionList( )
      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,
index 95ee318ea6c4a8531ee5fae93d3c2f319597637d..33e58e18160cbb55500cb5d115c1859b9287de80 100755 (executable)
@@ -175,15 +175,14 @@ function loadSurveyList( )
      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,