mirror of
https://github.com/vrana/adminer.git
synced 2025-08-21 05:41:27 +02:00
Fix selectCount() in information_schema
This commit is contained in:
@@ -169,7 +169,9 @@ 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);
|
||||||
|
if (el) {
|
||||||
|
var inputs = qsa('input', el.parentNode.parentNode);
|
||||||
for (var i = 0; i < inputs.length; i++) {
|
for (var i = 0; i < inputs.length; i++) {
|
||||||
var input = inputs[i];
|
var input = inputs[i];
|
||||||
if (input.type == 'submit') {
|
if (input.type == 'submit') {
|
||||||
@@ -177,6 +179,7 @@ function selectCount(id, count) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Check all elements matching given name
|
/** Check all elements matching given name
|
||||||
* @param RegExp
|
* @param RegExp
|
||||||
|
Reference in New Issue
Block a user