CRM-15524 - Avoid loading profileSelector scripts in ajax mode
authorColeman Watts <coleman@civicrm.org>
Tue, 4 Nov 2014 01:19:30 +0000 (20:19 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 4 Nov 2014 01:19:30 +0000 (20:19 -0500)
CRM/UF/Page/ProfileEditor.php

index 6c16846939ccc5c0bb3a574c520fef2b9da7c5d0..3ee072bd2947df80e547c74b61b3dbb4f4ae951a 100644 (file)
@@ -13,7 +13,7 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
 
   static function registerProfileScripts() {
     static $loaded = FALSE;
-    if ($loaded) {
+    if ($loaded || CRM_Core_Resources::singleton()->isAjaxMode()) {
       return;
     }
     $loaded = TRUE;