1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-28 08:39:53 +02:00

Display number of selected rows

This commit is contained in:
Jakub Vrana
2013-07-08 15:27:53 -07:00
parent 10f500dfea
commit c2a3bec036
3 changed files with 14 additions and 3 deletions

View File

@@ -57,6 +57,16 @@ function parentTag(el, tag) {
function trCheck(el) {
var tr = parentTag(el, 'tr');
tr.className = tr.className.replace(/(^|\s)checked(\s|$)/, '$2') + (el.checked ? ' checked' : '');
if (el.form['all']) {
el.form['all'].onclick();
}
}
/** Fill number of selected items
* @param string
*/
function selectCount(count) {
setHtml('selected', (count === '' ? '' : '(' + count + ')'));
}
/** Check all elements matching given name