mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
Fixed bug introduced by PR 1391 involving the saving up settings that have an associated text input.
This commit is contained in:
parent
564e393292
commit
8b0f005006
@ -65,7 +65,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-primary setting-save-button"
|
||||
id="{{ setting }}">
|
||||
id="{{ setting }}" data-target="value{{ loop.index }}">
|
||||
<i class="fa-solid fa-save"></i> Save
|
||||
</button>
|
||||
</td>
|
||||
@ -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() }}'
|
||||
|
Loading…
Reference in New Issue
Block a user