diff --git a/src/Presentation/Nop.Web/Views/Topic/TopicBlock.cshtml b/src/Presentation/Nop.Web/Views/Topic/TopicBlock.cshtml index 1b59c78997d..d41cd9c032e 100644 --- a/src/Presentation/Nop.Web/Views/Topic/TopicBlock.cshtml +++ b/src/Presentation/Nop.Web/Views/Topic/TopicBlock.cshtml @@ -26,6 +26,8 @@ $('#ph-topic-@Model.Id .topic-block-body').html(data.Body); $('#ph-password-@Model.Id').hide(); $('#ph-topic-@Model.Id').show(); + //we need to re-run the validation plugin after the content is loaded after successful authentication + $.validator.unobtrusive.parse('#ph-topic-@Model.Id'); } else { $('#password-error-@Model.Id').text(data.Error).fadeIn("slow"); $('#ph-password-@Model.Id #password-@Model.Id').select().focus(); diff --git a/src/Presentation/Nop.Web/Views/Topic/TopicDetails.cshtml b/src/Presentation/Nop.Web/Views/Topic/TopicDetails.cshtml index d138f7fb52e..4b0ded9c04f 100644 --- a/src/Presentation/Nop.Web/Views/Topic/TopicDetails.cshtml +++ b/src/Presentation/Nop.Web/Views/Topic/TopicDetails.cshtml @@ -55,6 +55,8 @@ $('#ph-topic .page-body').html(data.Body); $('#ph-password').hide(); $('#ph-topic').show(); + //we need to re-run the validation plugin after the content is loaded after successful authentication + $.validator.unobtrusive.parse('#ph-topic'); } else { $('#password-error').text(data.Error).fadeIn("slow");