]> git.joonet.de Git - adminer.git/commitdiff
Fix JS error in trCheck() on DB overview
authorJakub Vrana <jakub@vrana.cz>
Tue, 9 Jul 2013 07:31:56 +0000 (00:31 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 9 Jul 2013 07:34:34 +0000 (00:34 -0700)
adminer/static/functions.js

index 82fb7af3f9e8cdaca8fa7dba0d89571c4c15737b..7b8952c9531e67981303b76d574443eceed3a9eb 100644 (file)
@@ -57,7 +57,7 @@ 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']) {
+       if (el.form && el.form['all']) {
                el.form['all'].onclick();
        }
 }