1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-28 08:39:53 +02:00

Simplify autofocus

This commit is contained in:
Jakub Vrana
2025-03-16 11:08:01 +01:00
parent 26769b2357
commit 4fee062b73
2 changed files with 11 additions and 22 deletions

View File

@@ -880,16 +880,6 @@ function addEvent(el, action, handler) {
}
}
/** Defer focusing element
* @param HTMLElement
*/
function focus(el) {
setTimeout(function () {
// this has to be an anonymous function because Firefox passes some arguments to setTimeout callback
el.focus();
}, 0);
}
/** Clone node and setup submit highlighting
* @param HTMLElement
* @return HTMLElement