js break after editing Notes on Contact Summary Page
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 9 Oct 2014 09:26:52 +0000 (14:56 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 9 Oct 2014 09:26:52 +0000 (14:56 +0530)
templates/CRM/Contact/Page/View/Note.tpl

index f43d8236d6c1c289e55b182b0518c4fd00d5b579..88db99c983d2335e941f9f130180ba862f518c11 100644 (file)
     <script type="text/javascript">
     {literal}
       CRM.$(function($) {
-        var tabId = $.fn.dataTableSettings[0].sInstance;
+        var tabId = $('.dataTable').attr('id');
 
         $('table#'+ tabId).dataTable().fnSettings().aoDrawCallback.push( {
           "fn": function () {