1
0
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:
Jakub Vrana
2013-04-04 18:15:18 -07:00
parent e4d5835dab
commit 1a1b800b40
4 changed files with 8 additions and 8 deletions

View File

@@ -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;