Form now jumps to first error (if any) when it reloads
even if on a different tab.
This commit is contained in:
parent
e4a9df0e00
commit
a467062fe1
@ -568,5 +568,13 @@ function initDrafts() {
|
|||||||
|
|
||||||
initDrafts()
|
initDrafts()
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
<!-- Jump to error -->
|
||||||
|
$(function() {
|
||||||
|
if ($('.has-error')) {
|
||||||
|
location.href = '#' + $('.has-error:first').attr('id');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user