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

JS: Style issues

This commit is contained in:
Jakub Vrana
2025-03-20 08:03:54 +01:00
parent 11699223df
commit f16a6d415a
2 changed files with 5 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ function formField(form, name) {
function typePassword(el, disable) {
try {
el.type = (disable ? 'text' : 'password');
} catch (e) {
} catch (e) { // empty
}
}
@@ -466,7 +466,7 @@ function enumValues(s) {
var result = [];
var offset = 0;
var match;
while (match = re.exec(s)) {
while ((match = re.exec(s))) {
if (offset != match.index) {
break;
}

View File

@@ -429,9 +429,10 @@ function selectSearch(name) {
var el = qs('#fieldset-search');
el.className = '';
var divs = qsa('div', el);
for (var i=0; i < divs.length; i++) {
var i;
for (i=0; i < divs.length; i++) {
var div = divs[i];
var el = qs('[name$="[col]"]', div);
el = qs('[name$="[col]"]', div);
if (el && selectValue(el) == name) {
break;
}