forked from CGM_Public/pretix_original
Allow consistent deep links to tabs (#3840)
This commit is contained in:
@@ -238,7 +238,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset id="tab-item-additional-settings">
|
||||||
<legend>{% trans "Additional settings" %}</legend>
|
<legend>{% trans "Additional settings" %}</legend>
|
||||||
{% bootstrap_field form.issue_giftcard layout="control" %}
|
{% bootstrap_field form.issue_giftcard layout="control" %}
|
||||||
{% if form.grant_membership_type %}
|
{% if form.grant_membership_type %}
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
{% bootstrap_field sform.giftcard_expiry_years layout="control" %}
|
{% bootstrap_field sform.giftcard_expiry_years layout="control" %}
|
||||||
{% bootstrap_field sform.giftcard_length layout="control" %}
|
{% bootstrap_field sform.giftcard_length layout="control" %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset id="tab-organizer-privacy">
|
||||||
<legend>{% trans "Privacy" %}</legend>
|
<legend>{% trans "Privacy" %}</legend>
|
||||||
{% bootstrap_field sform.privacy_url layout="control" %}
|
{% bootstrap_field sform.privacy_url layout="control" %}
|
||||||
<div class="alert alert-legal">
|
<div class="alert alert-legal">
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ $(function () {
|
|||||||
var validity_error = false;
|
var validity_error = false;
|
||||||
$form.find("fieldset").each(function () {
|
$form.find("fieldset").each(function () {
|
||||||
var $fieldset = $(this);
|
var $fieldset = $(this);
|
||||||
var tid = "tab-" + j + "-" + i;
|
var tid = $fieldset.attr("id");
|
||||||
|
if (!tid) tid = "tab-" + j + "-" + i;
|
||||||
var $tabli = $("<li>").appendTo($tabs);
|
var $tabli = $("<li>").appendTo($tabs);
|
||||||
var $tablink = $("<a>").attr("role", "tab")
|
var $tablink = $("<a>").attr("role", "tab")
|
||||||
.attr("data-toggle", "tab")
|
.attr("data-toggle", "tab")
|
||||||
|
|||||||
Reference in New Issue
Block a user