Updated how the form jumps to errors on reload
It was inserting "#undefined" when there was no error
This commit is contained in:
parent
bc5cddb5ee
commit
7e7d1d1d8a
@ -571,7 +571,7 @@ initDrafts()
|
||||
<script>
|
||||
<!-- Jump to error -->
|
||||
$(function() {
|
||||
if ($('.has-error')) {
|
||||
if ($('.has-error').length) {
|
||||
location.href = '#' + $('.has-error:first').attr('id');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user