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(); } }