);
}
}
+ // Update any settings stored in dynamic js
+ CRM_Core_Resources::singleton()->resetCacheCode();
CRM_Core_Session::setStatus(ts('Your changes have been saved.'), ts('Saved'), 'success');
}
// Add global settings
$settings = array(
'config' => array(
- 'ajaxPopupsEnabled' => $this->ajaxPopupsEnabled,
'isFrontend' => $config->userFrameworkFrontend,
),
);
'contactCreate' => CRM_Core_BAO_UFGroup::getCreateLinks(),
'filters' => self::getEntityRefFilters(),
),
+ 'ajaxPopupsEnabled' => self::singleton()->ajaxPopupsEnabled,
);
print CRM_Core_Smarty::singleton()->fetchWith('CRM/common/l10n.js.tpl', $vars);
CRM_Utils_System::civiExit();
CRM.config.lcMessages = {$config->lcMessages|@json_encode};
$.datepicker._defaults.dateFormat = CRM.config.dateInputFormat = {$config->dateInputFormat|@json_encode};
CRM.config.timeIs24Hr = {if $config->timeInputFormat eq 2}true{else}false{/if};
+ CRM.config.ajaxPopupsEnabled = {$ajaxPopupsEnabled|@json_encode};
// Merge entityRef settings
CRM.config.entityRef = $.extend({ldelim}{rdelim}, {$entityRef|@json_encode}, CRM.config.entityRef || {ldelim}{rdelim});