From ab80a40269ff153afb00fbd52b9af63018d1b229 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 9 Jul 2013 00:31:56 -0700 Subject: [PATCH] Fix JS error in trCheck() on DB overview --- adminer/static/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 82fb7af3..7b8952c9 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -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(); } }