Skip to content

Commit

Permalink
Merge pull request #12265 from agileware/Accessibility-Issue-9
Browse files Browse the repository at this point in the history
Accessibility #9: Regression - js error due to alertDismissal setting fixed.
  • Loading branch information
monishdeb authored Jun 5, 2018
2 parents bc99a11 + a9fb612 commit bc2951c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Core/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ public static function outputLocalizationJS() {
'filters' => self::getEntityRefFilters(),
),
'ajaxPopupsEnabled' => self::singleton()->ajaxPopupsEnabled,
'allowAlertAutodismissal' => Civi::settings()->get('allow_alert_autodismissal'),
'allowAlertAutodismissal' => (bool) Civi::settings()->get('allow_alert_autodismissal'),
);
print CRM_Core_Smarty::singleton()->fetchWith('CRM/common/l10n.js.tpl', $vars);
CRM_Utils_System::civiExit();
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/common/l10n.js.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
$.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};
CRM.config.allowAlertAutodismissal = {$allowAlertAutodismissal};
CRM.config.allowAlertAutodismissal = {$allowAlertAutodismissal|@json_encode};
// Merge entityRef settings
CRM.config.entityRef = $.extend({ldelim}{rdelim}, {$entityRef|@json_encode}, CRM.config.entityRef || {ldelim}{rdelim});
Expand Down

0 comments on commit bc2951c

Please sign in to comment.