X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2FCommon.js;h=8a5306763778e4b27059c4a0e07e57a9bd870545;hb=15104605be4585bdb5f23704f2960210aa0927e6;hp=0460403c79df7b0ff13453871b47ae773c0b62de;hpb=865168d5d056d071d23d0273189051241c5261e5;p=civicrm-core.git diff --git a/js/Common.js b/js/Common.js index 0460403c79..8a53067637 100644 --- a/js/Common.js +++ b/js/Common.js @@ -1247,7 +1247,7 @@ if (!CRM.vars) CRM.vars = {}; unique: true }; options = $.extend(extra, options); - options.expires = options.expires === false ? 0 : parseInt(options.expires, 10); + options.expires = (options.expires === false || !CRM.config.allowAlertAutodismissal) ? 0 : parseInt(options.expires, 10); if (options.unique && options.unique !== '0') { $('#crm-notification-container .ui-notify-message').each(function () { if (title === $('h1', this).html() && text === $('.notify-content', this).html()) {