Summary.js cleanup
authorColeman Watts <coleman@civicrm.org>
Fri, 7 Mar 2014 19:22:52 +0000 (14:22 -0500)
committerColeman Watts <coleman@civicrm.org>
Fri, 7 Mar 2014 19:22:52 +0000 (14:22 -0500)
templates/CRM/Contact/Page/View/Summary.js

index 5f5f97baedb8dae62dddee9da25006774489180f..30560f3775800db07dfd7e564bd475acdc1fcac1 100644 (file)
       })
       // Handle action links in popup
       .on('click', '.crm-contact_actions-list a, .crm-contact_activities-list a', function() {
-        var tabName = $(this).data('tab') || 'summary';
-        var $tab = $('#tab_' + tabName);
-        var $panel = $('#' + $tab.attr('aria-controls'));
-        var url = $(this).attr('href');
+        var
+          tabName = $(this).data('tab') || 'summary',
+          $tab = $('#tab_' + tabName),
+          $panel = $('#' + $tab.attr('aria-controls')),
+          url = $(this).attr('href');
         if (url !== '#') {
           CRM.loadForm(url)
             .on('crmFormSuccess', function() {