diff options
| author | 2019-04-06 17:05:53 +0200 | |
|---|---|---|
| committer | 2019-04-06 17:05:53 +0200 | |
| commit | 1b7cf6b0354c6b665d5a6ff8d3f6c4b52be6fbd6 (patch) | |
| tree | 3038290a2600db46f5bc19dc2521b3ce715899f4 /p | |
| parent | 43e3a2d69dc6343f3e30e7c3e3e1cb396a5650a1 (diff) | |
Fix menu warning (#2353)
confirm is only for labels, not for feeds
Diffstat (limited to 'p')
| -rw-r--r-- | p/scripts/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index a44a22c6a..215d4117b 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -692,7 +692,10 @@ function init_column_categories() { a.href = '#dropdown-' + id; div.querySelector('.dropdown-target').id = 'dropdown-' + id; div.insertAdjacentHTML('beforeend', template); - div.querySelector('button.confirm').disabled = false; + const b = div.querySelector('button.confirm'); + if (b) { + b.disabled = false; + } } else if (getComputedStyle(dropdownMenu).display === 'none') { const id2 = div.closest('.item').id.substr(2); a.href = '#dropdown-' + id2; |
