From: Coleman Watts Date: Tue, 4 Nov 2014 01:19:30 +0000 (-0500) Subject: CRM-15524 - Avoid loading profileSelector scripts in ajax mode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cd84a2fade1b513c0fa7ff1d24a0d3a9fa284d21;p=civicrm-core.git CRM-15524 - Avoid loading profileSelector scripts in ajax mode --- diff --git a/CRM/UF/Page/ProfileEditor.php b/CRM/UF/Page/ProfileEditor.php index 6c16846939..3ee072bd29 100644 --- a/CRM/UF/Page/ProfileEditor.php +++ b/CRM/UF/Page/ProfileEditor.php @@ -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;