From 14e5aabb60a174b6f5091daba178d5e3281c83e4 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 7 Mar 2014 14:22:52 -0500 Subject: [PATCH] Summary.js cleanup --- templates/CRM/Contact/Page/View/Summary.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Contact/Page/View/Summary.js b/templates/CRM/Contact/Page/View/Summary.js index 5f5f97baed..30560f3775 100644 --- a/templates/CRM/Contact/Page/View/Summary.js +++ b/templates/CRM/Contact/Page/View/Summary.js @@ -292,10 +292,11 @@ }) // 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() { -- 2.25.1