worked on CRM-12407, ajax events are fired for each of the multiple of
authorKurund Jalmi <kurund@civicrm.org>
Wed, 24 Apr 2013 23:12:32 +0000 (16:12 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Wed, 24 Apr 2013 23:13:17 +0000 (16:13 -0700)
data instance simultaneously this causes race condition and casuses
random breaks, hence changing ajax request to use async mode.

templates/CRM/common/customData.tpl

index ef0317bdf74e48fd2fcd0789787a70107bb62e55..4635212b4bf8608354ebe7670fb71a35b3697ec3 100644 (file)
@@ -97,6 +97,7 @@ CRM.buildCustomData = function( type, subType, subName, cgCount, groupID, isMult
   cj.ajax({
     url: dataUrl,
     dataType: 'html',
+    async: false,
     success: function(response) {
       var target = cj(fname);
       var storage = {};