If there are form errors it will now switch to the appropriate tab
This commit is contained in:
parent
cad0d00817
commit
2c9527bfa5
2 changed files with 8 additions and 2 deletions
|
@ -47,8 +47,10 @@
|
|||
{% block scripts %}
|
||||
{% include "_scripts.html" %}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js"></script>
|
||||
{% block extra_script %}{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block extra_body_base %}
|
||||
{% analytics %}
|
||||
{% block extra_body %}{% endblock %}
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
<hr />
|
||||
|
||||
{% if review_form %}
|
||||
<form method="POST" action="" class="review-form">
|
||||
<form method="POST" action="#proposal-reviews" class="review-form">
|
||||
<legend>{% trans "Submit Review" %}</legend>
|
||||
<p>Enter your vote and any comment to go along with it. You can revise your vote or comment multiple times with an existing vote (your previously recorded score will be replaced during calculations). <b>Your vote and comments are not public and will only be viewable by other reviewers.</b></p>
|
||||
{% csrf_token %}
|
||||
|
@ -177,11 +177,15 @@
|
|||
$(".nav-tabs a[href='" + location.hash + "']").click();
|
||||
});
|
||||
|
||||
$('#.nav-tabs a[data-toggle="tab"]').on('shown', function (e) {
|
||||
$('.nav-tabs a[data-toggle="tab"]').on('shown', function (e) {
|
||||
if (History.enabled) {
|
||||
History.pushState(null, null, $(e.target).attr("href"));
|
||||
}
|
||||
});
|
||||
|
||||
if (window.location.hash !== '') {
|
||||
$('.nav-tabs a[href="' + window.location.hash + '"]').tab('show')
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue