From edb049d0bcc1bb2d52b50c001dcf1950c8859391 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 3 Apr 2014 15:11:08 -0400 Subject: [PATCH] Fix js popup bug --- templates/CRM/Contact/Page/View/Summary.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Contact/Page/View/Summary.js b/templates/CRM/Contact/Page/View/Summary.js index a425d6f833..c814aec7bf 100644 --- a/templates/CRM/Contact/Page/View/Summary.js +++ b/templates/CRM/Contact/Page/View/Summary.js @@ -294,14 +294,14 @@ return false; }) // Handle action links in popup - .on('click', '.crm-contact_actions-list a, .crm-contact_activities-list a', function() { + .on('click', '.crm-contact_actions-list a, .crm-contact_activities-list a', function(e) { $('#crm-contact-actions-list').hide(); if ($(this).attr('href') === '#') { var $tab = $('#tab_' + ($(this).data('tab') || 'summary')); CRM.tabHeader.focus($tab); - return false; + e.preventDefault(); } else { - return CRM.popup.call(this); + CRM.popup.call(this, e); } }) .on('crmPopupFormSuccess', '.crm-contact_actions-list a, .crm-contact_activities-list a', function() { -- 2.25.1