File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/Presentation/Nop.Web/Views/Topic Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 26
26
$ (' #ph-topic-@Model.Id .topic-block-body' ).html (data .Body );
27
27
$ (' #ph-password-@Model.Id' ).hide ();
28
28
$ (' #ph-topic-@Model.Id' ).show ();
29
+ // we need to re-run the validation plugin after the content is loaded after successful authentication
30
+ $ .validator .unobtrusive .parse (' #ph-topic-@Model.Id' );
29
31
} else {
30
32
$ (' #password-error-@Model.Id' ).text (data .Error ).fadeIn (" slow" );
31
33
$ (' #ph-password-@Model.Id #password-@Model.Id' ).select ().focus ();
Original file line number Diff line number Diff line change 55
55
$ (' #ph-topic .page-body' ).html (data .Body );
56
56
$ (' #ph-password' ).hide ();
57
57
$ (' #ph-topic' ).show ();
58
+ // we need to re-run the validation plugin after the content is loaded after successful authentication
59
+ $ .validator .unobtrusive .parse (' #ph-topic' );
58
60
}
59
61
else {
60
62
$ (' #password-error' ).text (data .Error ).fadeIn (" slow" );
You can’t perform that action at this time.
0 commit comments