X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2Fcommon%2Fl10n.js.tpl;h=ee2cf1843eef8ecf080af7cbb9f5240579cffd98;hb=8fb8e7a0be0f94af94d4dc310dc609e11ad0549f;hp=89e923e150de0539436ce11ea77533d1323e7499;hpb=fd9172a486c207bdcaec658dfbc07fca0b52002f;p=civicrm-core.git diff --git a/templates/CRM/common/l10n.js.tpl b/templates/CRM/common/l10n.js.tpl index 89e923e150..ee2cf1843e 100644 --- a/templates/CRM/common/l10n.js.tpl +++ b/templates/CRM/common/l10n.js.tpl @@ -114,12 +114,12 @@ // use civicrm notifications when there are errors params.invalidHandler = function(form, validator) { + // If there is no container for display then red text will still show next to the invalid fields + // but there will be no overall message. Currently the container is only available on backoffice pages. if ($('#crm-notification-container').length) { $.each(validator.errorList, function(k, error) { $(error.element).crmError(error.message); }); - } else { - alert({/literal}"{ts escape='js'}Please review and correct the highlighted fields before continuing.{/ts}"{literal}); } };