mirror of
https://github.com/vrana/adminer.git
synced 2025-08-24 15:12:51 +02:00
Edit select SQL query on Ctrl+click
This commit is contained in:
@@ -40,12 +40,12 @@ function selectValue(select) {
|
||||
|
||||
/** Get parent node with specified tag name.
|
||||
* @param HTMLElement
|
||||
* @param string
|
||||
* @param string regular expression
|
||||
* @return HTMLElement
|
||||
*/
|
||||
function parentTag(el, tag) {
|
||||
var re = new RegExp('^' + tag + '$', 'i');
|
||||
while (!re.test(el.tagName)) {
|
||||
while (el && !re.test(el.tagName)) {
|
||||
el = el.parentNode;
|
||||
}
|
||||
return el;
|
||||
|
Reference in New Issue
Block a user