48a327c479b85c1cdfd36cab5f2834b864de637d
1 // http://civicrm.org/licensing
2 // Adds ajaxy behavior to a simple CiviCRM page
4 var active
= 'a.button, a.action-item, a.crm-popup';
5 $('#crm-main-content-wrapper')
6 // Widgetize the content area
8 // Open action links in a popup
10 .on('click.crmLivePage', active
, CRM
.popup
)
11 .on('crmPopupFormSuccess.crmLivePage', active
, function() {
12 // Refresh page when form completes
13 $('#crm-main-content-wrapper').crmSnippet('refresh');