Updated how the form jumps to errors on reload

It was inserting "#undefined" when there was no error
This commit is contained in:
Naomi 2018-10-03 20:13:38 +01:00
parent bc5cddb5ee
commit 7e7d1d1d8a

View File

@ -571,7 +571,7 @@ initDrafts()
<script>
<!-- Jump to error -->
$(function() {
if ($('.has-error')) {
if ($('.has-error').length) {
location.href = '#' + $('.has-error:first').attr('id');
}
});