From: Coleman Watts Date: Wed, 20 Aug 2014 14:36:39 +0000 (+0100) Subject: Summary.js cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=122503938502b9aa01f4f0bc0109ce6d77d6381f;p=civicrm-core.git Summary.js cleanup --- diff --git a/templates/CRM/Contact/Page/View/Summary.js b/templates/CRM/Contact/Page/View/Summary.js index 8845fdf334..4ee0866581 100644 --- a/templates/CRM/Contact/Page/View/Summary.js +++ b/templates/CRM/Contact/Page/View/Summary.js @@ -92,7 +92,7 @@ CRM.status(ts('Saved')); } // Update changelog tab and contact footer - if (response.changeLog.count) { + if (response.changeLog && response.changeLog.count) { CRM.tabHeader.updateCount('#tab_log', response.changeLog.count); } $("#crm-record-log").replaceWith(response.changeLog.markup); @@ -158,7 +158,7 @@ $('.crm-inline-edit.form form').unblock(); } - $('document').ready(function() { + $(function() { // don't perform inline edit during print mode if (CRM.summaryPrint.mode) { $('div').removeClass('crm-inline-edit');