CRM-15633 - Fix js on campaign dashboard tables
authorColeman Watts <coleman@civicrm.org>
Mon, 24 Nov 2014 04:02:18 +0000 (23:02 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 24 Nov 2014 04:02:18 +0000 (23:02 -0500)
CRM/Campaign/Page/DashBoard.php
templates/CRM/Campaign/Form/Search/Campaign.tpl
templates/CRM/Campaign/Form/Search/Petition.tpl
templates/CRM/Campaign/Form/Search/Survey.tpl

index d60a7a77902f32f3522bb688aefdf579d91ba5d7..fc99f58f48b557dd5214b0affcfb3d3cae79b78c 100644 (file)
@@ -496,6 +496,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
         'link' => CRM_Utils_System::url('civicrm/campaign', "reset=1&type=$name"),
       );
     }
+    $allTabs['campaign']['class'] = 'livePage';
     $this->assign('tabHeader', $allTabs);
   }
 }
index 821a1807bb2abe1c7bb655d0fd08a092db67ae27..3fa22fadc9e1b5ccf462c801103f6c4bf2827b3f 100755 (executable)
       },
       "fnRowCallback": function (nRow, aData, iDisplayIndex) {
         //insert the id for each row for enable/disable.
-        var rowId = 'campaign_row_' + aData[0];
-        CRM.$(nRow).attr('id', rowId);
+        var rowId = 'campaign-' + aData[0];
+        CRM.$(nRow).attr('id', rowId).addClass('crm-entity');
         //handled disabled rows.
         var isActive = Boolean(Number(aData[10]));
         if (!isActive) {
index 40be7c322fffcafee7307021707d72f3879ebf77..3cbea17b846dde3423eb8232481f9390e99c1cd1 100755 (executable)
@@ -200,8 +200,8 @@ function loadPetitionList( )
              "fnDrawCallback": function() { CRM.$().crmtooltip(); },
              "fnRowCallback": function( nRow, aData, iDisplayIndex ) {
          //insert the id for each row for enable/disable.
-         var rowId = 'petition_row_' + aData[0];
-         CRM.$(nRow).attr( 'id', rowId );
+         var rowId = 'survey-' + aData[0];
+         CRM.$(nRow).attr( 'id', rowId).addClass('crm-entity');
          //handled disabled rows.
          var isActive = Boolean(Number(aData[7]));
          if ( !isActive ) CRM.$(nRow).addClass( 'disabled' );
index e3c5fe4b16910b3ab290a2644b21ca792e5af7c1..7dca7451a0ff310df5bb3dfd865b667bd1d61bbe 100755 (executable)
@@ -215,8 +215,8 @@ function loadSurveyList( )
              "fnDrawCallback": function() { CRM.$().crmtooltip(); },
              "fnRowCallback": function( nRow, aData, iDisplayIndex ) {
          //insert the id for each row for enable/disable.
-         var rowId = 'survey_row_' + aData[0];
-         CRM.$(nRow).attr( 'id', rowId );
+         var rowId = 'survey-' + aData[0];
+         CRM.$(nRow).attr( 'id', rowId).addClass('crm-entity');
          //handled disabled rows.
          var isActive = Boolean(Number(aData[10]));
          if ( !isActive ) CRM.$(nRow).addClass( 'disabled' );