Skip to content

Commit

Permalink
Merge branch 'jsoa-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
omji committed Sep 7, 2015
2 parents 1d152e6 + 891fe91 commit 6332c78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tabbed_admin/templates/tabbed_admin/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
{% load i18n admin_modify admin_urls tabbed_admin_tags %}

{% block content %}

<div id="content-main">
{% block object-tools %}{{ block.super }}{% endblock %}
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.model_name }}_form" novalidate>{% csrf_token %}{% block form_top %}{% endblock %}
<div>
{% if is_popup %}<input type="hidden" name="{{ is_popup_var }}" value="1" />{% endif %}
Expand Down Expand Up @@ -67,14 +69,14 @@
$('#tabs #for_' + this.id).addClass("errortab");
}
});

$("#tabs").on('tabsactivate', function(event, ui) {
var scrollPos = $(window).scrollTop();
var hash = ui.newTab.children("li a").attr("href");
window.location.hash = hash;
$(window).scrollTop(scrollPos);
});

if ($('.errornote').length) {
$('.errornote').addClass('tabbed-errornote');
}
Expand All @@ -100,4 +102,3 @@
</form>
</div>
{% endblock %}

0 comments on commit 6332c78

Please sign in to comment.