Test
This commit is contained in:
parent
348d6767b3
commit
9750fe787e
|
@ -59,6 +59,7 @@ document.getElementById('acl-edit-form').addEventListener('submit', function(e)
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log(res.status, res.statusText);
|
||||||
if (res.ok) window.location.href = '/acl';
|
if (res.ok) window.location.href = '/acl';
|
||||||
else alert('Failed to update ACL entry');
|
else alert('Failed to update ACL entry');
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|
Loading…
Reference in a new issue