mirror of
https://github.com/vrana/adminer.git
synced 2025-08-31 01:59:59 +02:00
Fix highlighting default submit button in indexes form
This commit is contained in:
@@ -1128,10 +1128,12 @@ function inputBlur() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Find submit button used by Enter
|
/**
|
||||||
* @param HTMLElement
|
* Finds submit button used by Enter.
|
||||||
* @return HTMLInputElement
|
*
|
||||||
*/
|
* @param {HTMLElement} el
|
||||||
|
* @return {HTMLInputElement}
|
||||||
|
*/
|
||||||
function findDefaultSubmit(el) {
|
function findDefaultSubmit(el) {
|
||||||
if (el.jushTextarea) {
|
if (el.jushTextarea) {
|
||||||
el = el.jushTextarea;
|
el = el.jushTextarea;
|
||||||
@@ -1139,10 +1141,10 @@ function findDefaultSubmit(el) {
|
|||||||
if (!el.form) {
|
if (!el.form) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var inputs = qsa('input', el.form);
|
|
||||||
for (var i = 0; i < inputs.length; i++) {
|
const inputs = qsa('input', el.form);
|
||||||
var input = inputs[i];
|
for (const input of inputs) {
|
||||||
if (input.type === 'submit' && !input.style.zIndex) {
|
if (input.type === 'submit' && !input.classList.contains("wayoff") && !input.style.zIndex) {
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user