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