CRM-14477 - Fix case datatable refresh
authorColeman Watts <coleman@civicrm.org>
Mon, 28 Apr 2014 21:27:17 +0000 (14:27 -0700)
committerColeman Watts <coleman@civicrm.org>
Mon, 28 Apr 2014 21:27:17 +0000 (14:27 -0700)
templates/CRM/Case/Form/ActivityChangeStatusJs.tpl

index a801e4c396be4806e5a5a6fb85c7a728ff99fc57..d5c58256e4d737dee545a7e0be547f02599b9957 100644 (file)
                   return false;
                 }
                 else {
-                  // reload the table on success
-                  if (window.buildCaseActivities) {
-                    // If we are using a datatable
-                    buildCaseActivities(true);
-                  }
-                  else {
-                    // Legacy refresh for non-datatable screens
-                    var table = link.closest('table.nestedActivitySelector');
-                    table.parent().crmSnippet({url: CRM.url('civicrm/case/details', table.data('params'))}).crmSnippet('refresh');
-                  }
+                  CRM.refreshParent(link);
                 }
               },
               error : function(jqXHR) {