diff --git a/powerdnsadmin/templates/admin_setting_basic.html b/powerdnsadmin/templates/admin_setting_basic.html index 5d1158a..3a84bb0 100644 --- a/powerdnsadmin/templates/admin_setting_basic.html +++ b/powerdnsadmin/templates/admin_setting_basic.html @@ -65,7 +65,7 @@ @@ -103,7 +103,8 @@ $(document.body).on('click', '.setting-save-button', function () { var setting = $(this).prop('id'); - var value = $(this).parents('tr').find('input[type="text"]')[0].value; + var target = $(this).data('target'); + var value = $('#' + target).val(); var postdata = { 'value': value, '_csrf_token': '{{ csrf_token() }}'