fixed adding of client for multi-client mode, problem was with the page being redirec...
authorKurund Jalmi <kurund@civicrm.org>
Tue, 5 Mar 2013 10:08:33 +0000 (15:38 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Tue, 5 Mar 2013 10:08:33 +0000 (15:38 +0530)
templates/CRM/Case/Form/CaseView.tpl

index 63989c5e426238aa6b530f5bf61a87af72e95999..b3ffcbba1f2a84304e39522ca9aad438b0a7a12b 100644 (file)
         cj.post( postUrl, {contactID: contactID,caseID: caseID,
           key: {/literal}"{crmKey name='civicrm/case/ajax/addclient'}"{literal} },
           function( data ) {
+            //due to caching issues we use redirection rather than reload
+            document.location = {/literal}'{crmURL q="action=view&reset=1&id=$caseID&cid=$contactID&context=$context" h=0 }'{literal};
           },
           'json'
         );
-
-          cj(this).dialog("close");
-          cj(this).dialog("destroy");
-          //due to caching issues we use redirection rather than reload
-          document.location = {/literal}'{crmURL q="action=view&reset=1&id=$caseID&cid=$contactID&context=$context" h=0 }'{literal};
         },
 
         "Cancel": function() {