Fix selectCount() in information_schema
This commit is contained in:
parent
cc268428b8
commit
9cbdb6262b
|
@ -169,11 +169,14 @@ function trCheck(el) {
|
||||||
*/
|
*/
|
||||||
function selectCount(id, count) {
|
function selectCount(id, count) {
|
||||||
setHtml(id, (count === '' ? '' : '(' + (count + '').replace(/\B(?=(\d{3})+$)/g, ' ') + ')'));
|
setHtml(id, (count === '' ? '' : '(' + (count + '').replace(/\B(?=(\d{3})+$)/g, ' ') + ')'));
|
||||||
var inputs = qsa('input', qs('#' + id).parentNode.parentNode);
|
var el = qs('#' + id);
|
||||||
for (var i = 0; i < inputs.length; i++) {
|
if (el) {
|
||||||
var input = inputs[i];
|
var inputs = qsa('input', el.parentNode.parentNode);
|
||||||
if (input.type == 'submit') {
|
for (var i = 0; i < inputs.length; i++) {
|
||||||
input.disabled = (count == '0');
|
var input = inputs[i];
|
||||||
|
if (input.type == 'submit') {
|
||||||
|
input.disabled = (count == '0');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue