js/module: fix JS error on missing id

This commit is contained in:
Thomas Gelf 2016-03-05 13:49:08 +01:00
parent f3e526f95f
commit cf4903ff70
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
{
var $input = $(ev.currentTarget);
var $dd = $input.closest('dd');
if ($dd.attr('id').match(/button/)) {
if ($dd.attr('id') && $dd.attr('id').match(/button/)) {
return;
}
var $li = $input.closest('li');