mirror of
https://github.com/vrana/adminer.git
synced 2025-08-22 22:23:19 +02:00
Focus correct field in selectSearch
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
|
|
||||||
/** Get first element by selector
|
/** Get first element by selector
|
||||||
* @param string
|
* @param string
|
||||||
|
* @param [HTMLElement] defaults to document
|
||||||
* @return HTMLElement
|
* @return HTMLElement
|
||||||
*/
|
*/
|
||||||
function qs(selector) {
|
function qs(selector, context) {
|
||||||
return document.querySelector(selector);
|
return (context || document).querySelector(selector);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get last element by selector
|
/** Get last element by selector
|
||||||
|
Reference in New Issue
Block a user