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:
@@ -73,7 +73,7 @@ function formField(form, name) {
|
|||||||
function typePassword(el, disable) {
|
function typePassword(el, disable) {
|
||||||
try {
|
try {
|
||||||
el.type = (disable ? 'text' : 'password');
|
el.type = (disable ? 'text' : 'password');
|
||||||
} catch (e) {
|
} catch (e) { // empty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -466,7 +466,7 @@ function enumValues(s) {
|
|||||||
var result = [];
|
var result = [];
|
||||||
var offset = 0;
|
var offset = 0;
|
||||||
var match;
|
var match;
|
||||||
while (match = re.exec(s)) {
|
while ((match = re.exec(s))) {
|
||||||
if (offset != match.index) {
|
if (offset != match.index) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -429,9 +429,10 @@ function selectSearch(name) {
|
|||||||
var el = qs('#fieldset-search');
|
var el = qs('#fieldset-search');
|
||||||
el.className = '';
|
el.className = '';
|
||||||
var divs = qsa('div', el);
|
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 div = divs[i];
|
||||||
var el = qs('[name$="[col]"]', div);
|
el = qs('[name$="[col]"]', div);
|
||||||
if (el && selectValue(el) == name) {
|
if (el && selectValue(el) == name) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user