Fix menu warning (#2353)

confirm is only for labels, not for feeds
pull/2354/head
Alexandre Alapetite 6 years ago committed by GitHub
parent 43e3a2d69d
commit 1b7cf6b035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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;

Loading…
Cancel
Save