From df94baa81e7532932c445e938e206478b387d2f8 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Sat, 25 Feb 2023 16:50:08 -0500 Subject: [PATCH] Fixed a bug introduced by the recent updates for the mobile-first PR. --- powerdnsadmin/templates/domain_setting.html | 22 ++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/powerdnsadmin/templates/domain_setting.html b/powerdnsadmin/templates/domain_setting.html index b1219a6..45423ef 100644 --- a/powerdnsadmin/templates/domain_setting.html +++ b/powerdnsadmin/templates/domain_setting.html @@ -90,11 +90,13 @@
+ 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 %}>   - + {% if SETTING.get('auto_ptr') %}

Auto-ptr is enabled globally on the PDA system!

{% endif %} @@ -116,8 +118,9 @@
+ 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 @@
- @@ -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': {