1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Replace getElementsByTagName by shortcut for querySelectorAll

This commit is contained in:
Jakub Vrana
2018-01-11 13:42:45 +01:00
parent 58b2904d62
commit 741b76fbd4
4 changed files with 41 additions and 32 deletions

View File

@@ -40,9 +40,9 @@ function tablesFilter(){
if (sessionStorage) {
sessionStorage.setItem('adminer_tables_filter', value);
}
var tables = qs('#tables').getElementsByTagName('li');
var tables = qsa('li', qs('#tables'));
for (var i = 0; i < tables.length; i++) {
var a = tables[i].getElementsByTagName('a')[1];
var a = qsa('a', tables[i])[1];
var text = tables[i].getAttribute('data-table-name');
if (value == '') {
tables[i].className = '';