Commit | Line | Data |
---|---|---|
1 | // http://civicrm.org/licensing | |
2 | // Adds ajaxy behavior to a simple CiviCRM page | |
3 | CRM.$(function($) { | |
4 | var active = 'a.button, a.action-item:not(.crm-enable-disable), a.crm-popup'; | |
5 | $('#crm-main-content-wrapper') | |
6 | // Widgetize the content area | |
7 | .crmSnippet() | |
8 | // Open action links in a popup | |
9 | .off('.crmLivePage') | |
10 | .on('click.crmLivePage', active, CRM.popup) | |
11 | .on('crmPopupFormSuccess.crmLivePage', active, CRM.refreshParent); | |
12 | }); |