Skip to content

Commit cda4ced

Browse files
authored
Merge pull request #598 from TechnologyEnhancedLearning/Develop/Features/TD-4181-identify-error-messages
Make error message more evident
2 parents 9163af8 + f98cc68 commit cda4ced

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

LearningHub.Nhs.WebUI/Views/MyAccount/ChangeCurrentRole.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
populate-with-current-values="true"
6868
radios="@Model.RoleRadio().ToList()"
6969
hint-text=""
70-
required-client-side-error-message="Select a role"
70+
required-client-side-error-message="Error: Select a role"
7171
required="true" />
7272

7373
<div class="nhsuk-form-group">

LearningHub.Nhs.WebUI/Views/Shared/_ValidationScriptsPartial.cshtml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
$(function () {
2727
$('form').each(function () {
2828
if ($(this).data("validator")) {
29-
var valSettings = $(this).data("validator").settings
30-
valSettings.highlight = wrap($.validator.defaults.highlight, highlightDecorator)
31-
valSettings.unhighlight = wrap($.validator.defaults.unhighlight, unhighlightDecorator)
29+
var valSettings = $(this).data("validator").settings;
30+
valSettings.highlight = wrap($.validator.defaults.highlight, highlightDecorator);
31+
valSettings.unhighlight = wrap($.validator.defaults.unhighlight, unhighlightDecorator);
3232
}
3333
});
3434
});
@@ -37,7 +37,6 @@
3737
return function () {
3838
var args = Array.prototype.slice.call(arguments);
3939
beforeFunction.apply(this, args);
40-
4140
if (errorElements.length && submitAttempted) {
4241
errorElements[0]['obj'].focus();
4342
submitAttempted = false;

0 commit comments

Comments
 (0)