From 564e3932929196043ea74020f159d7c8abdec209 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Tue, 21 Feb 2023 07:55:15 -0500 Subject: [PATCH] Fixed bug introduced by PR 1391 involving the saving up settings that have an associated text input. --- powerdnsadmin/templates/admin_setting_basic.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/templates/admin_setting_basic.html b/powerdnsadmin/templates/admin_setting_basic.html index b0e2867..5d1158a 100644 --- a/powerdnsadmin/templates/admin_setting_basic.html +++ b/powerdnsadmin/templates/admin_setting_basic.html @@ -103,7 +103,7 @@ $(document.body).on('click', '.setting-save-button', function () { var setting = $(this).prop('id'); - var value = $(this).parents('tr').find('#value')[0].value; + var value = $(this).parents('tr').find('input[type="text"]')[0].value; var postdata = { 'value': value, '_csrf_token': '{{ csrf_token() }}'