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>
|
<script>
|
||||||
<!-- Jump to error -->
|
<!-- Jump to error -->
|
||||||
$(function() {
|
$(function() {
|
||||||
if ($('.has-error')) {
|
if ($('.has-error').length) {
|
||||||
location.href = '#' + $('.has-error:first').attr('id');
|
location.href = '#' + $('.has-error:first').attr('id');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user