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