We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 799f585 + 5246a99 commit e714e53Copy full SHA for e714e53
debug_toolbar/static/debug_toolbar/js/toolbar.js
@@ -109,16 +109,16 @@
109
110
if (this.tagName === 'BUTTON') {
111
const form = this.closest('form');
112
- ajax_data.url = this.getAttribute('formaction');
+ ajax_data.url = this.formAction;
113
114
if (form) {
115
ajax_data.body = new FormData(form);
116
- ajax_data.method = form.getAttribute('method') || 'POST';
+ ajax_data.method = form.method.toUpperCase();
117
}
118
119
120
if (this.tagName === 'A') {
121
- ajax_data.url = this.getAttribute('href');
+ ajax_data.url = this.href;
122
123
124
ajax(ajax_data.url, ajax_data).then(function(body) {
0 commit comments