From e4d290c449d2315d8ac42f8121467c935a769634 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 11 Dec 2013 18:08:42 -0800 Subject: [PATCH] CRM-13932 - Changelog summary tab - update deprecated jQuery --- templates/CRM/Contact/Page/View/Log.tpl | 39 ++++++++-------------- templates/CRM/Contact/Page/View/Summary.js | 7 +++- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/templates/CRM/Contact/Page/View/Log.tpl b/templates/CRM/Contact/Page/View/Log.tpl index 001577f2f6..c3a6363649 100644 --- a/templates/CRM/Contact/Page/View/Log.tpl +++ b/templates/CRM/Contact/Page/View/Log.tpl @@ -28,7 +28,7 @@
{ts}Change Log:{/ts} {$displayName}
{if $useLogging}
-
+
{else}
{if $logCount > 0 } @@ -55,35 +55,22 @@ {if $useLogging} {literal} diff --git a/templates/CRM/Contact/Page/View/Summary.js b/templates/CRM/Contact/Page/View/Summary.js index dc91dc6649..8c8bbc4b1a 100644 --- a/templates/CRM/Contact/Page/View/Summary.js +++ b/templates/CRM/Contact/Page/View/Summary.js @@ -93,7 +93,12 @@ $("#tab_log a em").html(response.changeLog.count); } $("#crm-record-log").replaceWith(response.changeLog.markup); - if ($('#Change_Log div').length) { + // Refresh tab contents - Advanced logging + if (CRM.reloadChangeLogTab) { + CRM.reloadChangeLogTab(); + } + // Refresh tab contents - Simple logging + else if ($('#Change_Log div').length) { $('#Change_Log').load($("#tab_log a").attr('href')); } } -- 2.25.1