Skip to content

Commit

Permalink
Remove _ValidationScriptsPartial from non-admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
petervandenhout committed Aug 11, 2019
1 parent 2ec7427 commit 55613f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<environment include="Development">
<script src="~/js/jquery.validate.js"></script>
<script src="~/js/jquery.validate.unobtrusive.js"></script>
</environment>
<environment exclude="Development">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.min.js"
asp-fallback-src="~/js/jquery.validate.min.js"
asp-fallback-test="window.jQuery && window.jQuery.validator"
crossorigin="anonymous"
integrity="sha256-F6h55Qw6sweK+t7SiOJX+2bpSAa3b/fnlrVCJvmEj1A=">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validation-unobtrusive/3.2.11/jquery.validate.unobtrusive.min.js"
asp-fallback-src="~/js/jquery.validate.unobtrusive.min.js"
asp-fallback-test="window.jQuery && window.jQuery.validator && window.jQuery.validator.unobtrusive"
crossorigin="anonymous"
integrity="sha256-9GycpJnliUjJDVDqP0UEu/bsm9U+3dnQUH8+3W10vkY=">
</script>
</environment>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
@RenderSection("head", required: false)
}
@section scripts {
<partial name="_ValidationScriptsPartial" />
<environment include="Development">
<script src="~/themes/@theme/js/theme.min.js" asp-append-version="true"></script>
</environment>
Expand Down

0 comments on commit 55613f8

Please sign in to comment.