From: Coleman Watts Date: Mon, 24 Nov 2014 04:02:18 +0000 (-0500) Subject: CRM-15633 - Fix js on campaign dashboard tables X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a2e0853f403b6aedc00ea9295568500073fe08e5;p=civicrm-core.git CRM-15633 - Fix js on campaign dashboard tables --- diff --git a/CRM/Campaign/Page/DashBoard.php b/CRM/Campaign/Page/DashBoard.php index d60a7a7790..fc99f58f48 100644 --- a/CRM/Campaign/Page/DashBoard.php +++ b/CRM/Campaign/Page/DashBoard.php @@ -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); } } diff --git a/templates/CRM/Campaign/Form/Search/Campaign.tpl b/templates/CRM/Campaign/Form/Search/Campaign.tpl index 821a1807bb..3fa22fadc9 100755 --- a/templates/CRM/Campaign/Form/Search/Campaign.tpl +++ b/templates/CRM/Campaign/Form/Search/Campaign.tpl @@ -229,8 +229,8 @@ }, "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) { diff --git a/templates/CRM/Campaign/Form/Search/Petition.tpl b/templates/CRM/Campaign/Form/Search/Petition.tpl index 40be7c322f..3cbea17b84 100755 --- a/templates/CRM/Campaign/Form/Search/Petition.tpl +++ b/templates/CRM/Campaign/Form/Search/Petition.tpl @@ -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' ); diff --git a/templates/CRM/Campaign/Form/Search/Survey.tpl b/templates/CRM/Campaign/Form/Search/Survey.tpl index e3c5fe4b16..7dca7451a0 100755 --- a/templates/CRM/Campaign/Form/Search/Survey.tpl +++ b/templates/CRM/Campaign/Form/Search/Survey.tpl @@ -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' );