querySelector fails when id starts with digits
This commit is contained in:
parent
996b2db514
commit
39e46d2e0b
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for rsetting in rsettings %}
|
{% for rsetting in rsettings %}
|
||||||
<a href="#{{ rsetting.details.id }}" class="list-group-item list-group-item-{% if rsetting.details.active %}success{% endif %}" data-dont-remember="1" data-bs-toggle="tab">{{ rsetting.details.desc }} (ID #{{ rsetting.id }})</a>
|
<a href="#" class="list-group-item list-group-item-{% if rsetting.details.active %}success{% endif %}" data-dont-remember="1" data-bs-target="#settings_tab{{ rsetting.details.id }}" data-bs-toggle="tab">{{ rsetting.details.desc }} (ID #{{ rsetting.id }})</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="list-group-item"><em>{{ lang.admin.rsetting_none }}</em></span>
|
<span class="list-group-item"><em>{{ lang.admin.rsetting_none }}</em></span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -44,18 +44,18 @@
|
|||||||
<p class="text-muted">{{ lang.admin.rsetting_no_selection }}</p>
|
<p class="text-muted">{{ lang.admin.rsetting_no_selection }}</p>
|
||||||
</div>
|
</div>
|
||||||
{% for rsetting in rsettings %}
|
{% for rsetting in rsettings %}
|
||||||
<div id="{{ rsetting.details.id }}" class="tab-pane">
|
<div id="settings_tab{{ rsetting.details.id }}" class="tab-pane">
|
||||||
<form class="form" data-id="rsettings" role="form" method="post">
|
<form class="form" data-id="rsettings" role="form" method="post">
|
||||||
<input type="hidden" name="active" value="0">
|
<input type="hidden" name="active" value="0">
|
||||||
<div>
|
<div>
|
||||||
<label for="rsettings_desc">{{ lang.admin.rsetting_desc }}:</label>
|
<label for="rsettings_desc">{{ lang.admin.rsetting_desc }}:</label>
|
||||||
<input type="text" class="form-control" id="rsettings_desc" name="desc" value="{{ rsetting.details.desc }}">
|
<input type="text" class="form-control" id="rsettings_desc" name="desc" value="{{ rsetting.details.desc }}">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="mt-4">
|
||||||
<label for="rsettings_content">{{ lang.admin.rsetting_content }}:</label>
|
<label for="rsettings_content">{{ lang.admin.rsetting_content }}:</label>
|
||||||
<textarea class="form-control" id="rsettings_content" name="content" rows="10">{{ rsetting.details.content }}</textarea>
|
<textarea class="form-control" id="rsettings_content" name="content" rows="10">{{ rsetting.details.content }}</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="mt-4 mb-2">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="active" value="1" {% if rsetting.details.active %}checked{% endif %}> {{ lang.admin.active }}
|
<input type="checkbox" name="active" value="1" {% if rsetting.details.active %}checked{% endif %}> {{ lang.admin.active }}
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user