Merge pull request 'Fix dashboard buttons posting to the wrong URL' (#70) from fix/dashboard-action-field into main
Reviewed-on: #70
This commit was merged in pull request #70.
This commit is contained in:
commit
a0f3f9885b
1 file changed
+2
-1
@@ -2721,7 +2721,8 @@
|
|||||||
if (submitter) {
|
if (submitter) {
|
||||||
submitter.disabled = true;
|
submitter.disabled = true;
|
||||||
}
|
}
|
||||||
Fragments.request(form.action, { method: 'POST', body: new FormData(form) })
|
// getAttribute: forms with a field named "action" (play/pause buttons) shadow the form.action property.
|
||||||
|
Fragments.request(form.getAttribute('action'), { method: 'POST', body: new FormData(form) })
|
||||||
.then(function (doc) { return handle(doc, source); })
|
.then(function (doc) { return handle(doc, source); })
|
||||||
.catch(function () {
|
.catch(function () {
|
||||||
form.removeAttribute('aria-busy');
|
form.removeAttribute('aria-busy');
|
||||||
|
|||||||
Reference in new issue
Block a user