mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
Fixed a bug introduced by the recent updates for the mobile-first PR.
This commit is contained in:
parent
81bd5804e0
commit
df94baa81e
@ -90,11 +90,13 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" id="chkAutoPtr" class="auto_ptr_toggle"
|
||||
data-zone="{{ domain.name }}"
|
||||
{% for setting in domain.settings %}{% if setting.setting=='auto_ptr' and setting.value=='True' %}checked
|
||||
{% endif %}{% endfor %}
|
||||
{% if SETTING.get('auto_ptr') %}disabled="True" {% endif %}>
|
||||
|
||||
<label for="chkAutoPtr">Allow automatic reverse pointer creation on record updates?</label>
|
||||
<label for="chkAutoPtr">Allow automatic reverse pointer creation on record
|
||||
updates?</label>
|
||||
{% if SETTING.get('auto_ptr') %}
|
||||
<p><code>Auto-ptr is enabled globally on the PDA system!</code></p>
|
||||
{% endif %}
|
||||
@ -116,6 +118,7 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" id="chkDynDns" class="dyndns_on_demand_toggle"
|
||||
data-zone="{{ domain.name }}"
|
||||
{% for setting in domain.settings %}{% if setting.setting=='create_via_dyndns' and setting.value=='True' %}checked
|
||||
{% endif %}{% endfor %}>
|
||||
|
||||
@ -278,7 +281,8 @@
|
||||
<option>EPOCH</option>
|
||||
<option>OFF</option>
|
||||
</select><br/>
|
||||
<button type="submit" title="Update SOA-EDIT-API" class="btn btn-primary" id="change_soa_edit_api">
|
||||
<button type="submit" title="Update SOA-EDIT-API" class="btn btn-primary"
|
||||
id="change_soa_edit_api">
|
||||
<i class="fa-solid fa-floppy-disk"></i> Update SOA-EDIT-API
|
||||
</button>
|
||||
</form>
|
||||
@ -373,7 +377,7 @@
|
||||
//handle checkbox toggling
|
||||
$('.dyndns_on_demand_toggle').on('ifToggled', function (event) {
|
||||
var is_checked = $(this).prop('checked');
|
||||
var domain = $(this).prop('id');
|
||||
var domain = $(this).data('zone')
|
||||
postdata = {
|
||||
'action': 'set_setting',
|
||||
'data': {
|
||||
@ -386,7 +390,7 @@
|
||||
});
|
||||
$('.auto_ptr_toggle').on('ifToggled', function (event) {
|
||||
var is_checked = $(this).prop('checked');
|
||||
var domain = $(this).prop('id');
|
||||
var domain = $(this).data('zone')
|
||||
postdata = {
|
||||
'action': 'set_setting',
|
||||
'data': {
|
||||
|
Loading…
Reference in New Issue
Block a user