mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
JS: Use classList instead of className
This commit is contained in:
@@ -696,7 +696,7 @@ function schemaMousemove(event) {
|
||||
const top = (event.clientY - y) / em;
|
||||
const lineSet = { };
|
||||
for (const div of qsa('div', that)) {
|
||||
if (div.className == 'references') {
|
||||
if (div.classList.contains('references')) {
|
||||
const div2 = qs('[id="' + (/^refs/.test(div.id) ? 'refd' : 'refs') + div.id.substr(4) + '"]');
|
||||
const ref = (tablePos[div.title] || [ div2.parentNode.offsetTop / em, 0 ]);
|
||||
let left1 = -1;
|
||||
|
Reference in New Issue
Block a user