| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{if $context EQ 'Search'}
- {include file="CRM/common/pager.tpl" location="top"}
-{/if}
+{include file="CRM/common/pager.tpl" location="top"}
{strip}
<table class="selector row-highlight">
</tr>
{/foreach}
-{* Link to "View all contributions" for Contact Summary selector display *}
-{if $limit and $pager->_totalItems GT $limit }
- {if $context eq 'dashboard' }
- <tr class="even-row">
- <td colspan="10"><a href="{crmURL p='civicrm/contribute/search' q='reset=1'}">» {ts}Find more contributions{/ts}... </a></td>
- </tr>
- {elseif $context eq 'contribution' }
- <tr class="even-row">
- <td colspan="8"><a href="{crmURL p='civicrm/contribute/search' q="reset=1&force=1&cid=$contactId"}">» {ts}View all contributions from this contact{/ts}... </a></td>
- </tr>
- {/if}
-{/if}
</table>
{/strip}
-
-
-{if $context EQ 'Search'}
- {include file="CRM/common/pager.tpl" location="bottom"}
-{/if}
+{include file="CRM/common/pager.tpl" location="bottom"}
// http://civicrm.org/licensing
/*jslint indent: 2 */
/*global CRM, cj */
-CRM.$(function($) {
+(function($) {
'use strict';
var load = {
}
};
- $('#chart_view, #table_view').click(function() {
- if ($(this).hasClass('ui-state-default')) {
- $('.ui-tabs-selected', '#mainTabContainer').removeClass('ui-state-active ui-tabs-selected').addClass('ui-state-default');
- $(this).removeClass('ui-state-default').addClass('ui-state-active ui-tabs-selected');
- load[this.id]();
+ $('#crm-container').on('crmLoad', function (e) {
+ if ($(e.target).is('#crm-main-content-wrapper, #crm-container')) {
+ $('#chart_view, #table_view').click(function () {
+ if ($(this).hasClass('ui-state-default')) {
+ $('.ui-tabs-selected', '#mainTabContainer').removeClass('ui-state-active ui-tabs-selected').addClass('ui-state-default');
+ $(this).removeClass('ui-state-default').addClass('ui-state-active ui-tabs-selected');
+ load[this.id]();
+ }
+ });
+
+ // Initialize chart or table based on url hash
+ if (window.location.hash === '#table_layout') {
+ $('#table_view').click();
+ }
+ else {
+ load.chart_view();
+ }
}
});
-
- // Initialize chart or table based on url hash
- if (window.location.hash === '#table_layout') {
- $('#table_view').click();
- }
- else {
- load.chart_view();
- }
-});
+})(CRM.$);
<div class="float-right">
<table class="form-layout-compressed">
-<tr>
+ <tr>
<td>
- <a href="{$configPagesURL}" class="button"><span>{ts}Manage Contribution Pages{/ts}
- </span></a>
+ <a href="{$configPagesURL}" class="button no-popup"><span>{ts}Manage Contribution Pages{/ts}</span></a>
</td>
- <td><a href="{$newPageURL}" class="button"><span><div class="icon add-icon"></div>{ts}Add Contribution Page{/ts}
- </span></a>
+ <td>
+ <a href="{$newPageURL}" class="button no-popup"><span><div class="icon add-icon"></div>{ts}Add Contribution Page{/ts}</span></a>
</td>
-</tr>
+ </tr>
</table>
</div>
{/if}