Updated how the form jumps to errors on reload

It was inserting "#undefined" when there was no error
Dieser Commit ist enthalten in:
Naomi
2018-10-03 20:13:38 +01:00
Ursprung bc5cddb5ee
Commit 7e7d1d1d8a

Datei anzeigen

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