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 672de79 + 34b0808 commit 663fc27Copy full SHA for 663fc27
debug_toolbar/static/debug_toolbar/js/toolbar.js
@@ -108,10 +108,9 @@
108
$$.on(djDebug, 'click', '.remoteCall', function(event) {
109
event.preventDefault();
110
111
- var name = this.tagName.toLowerCase();
112
var ajax_data = {};
113
114
- if (name == 'button') {
+ if (this.tagName == 'BUTTON') {
115
var form = this.closest('form');
116
ajax_data.url = this.getAttribute('formaction');
117
@@ -121,7 +120,7 @@
121
120
}
122
123
124
- if (name == 'a') {
+ if (this.tagName == 'A') {
125
ajax_data.url = this.getAttribute('href');
126
127
0 commit comments