diff options
| author | 2022-05-30 10:51:47 +0200 | |
|---|---|---|
| committer | 2022-05-30 10:51:47 +0200 | |
| commit | 98f9409155a95c4f63874251f34b5e5592255fd0 (patch) | |
| tree | 1822d87fb6d2d5ac97a3007e519d711ee3a34eed /p/scripts | |
| parent | 15cdb60ba07f9c83d0129677b117bd3e955e13e5 (diff) | |
Improved: Feed config: title, website url, feed url (#4258)
* do not display "website" in dropdown menu, when it is empty
* feed name and URL required. input type = url
* Update app/views/helpers/feed/update.phtml
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Update app/views/helpers/feed/update.phtml
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* fix spaces and tabs
* use classes indead of ID
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 03a04c989..035b66c53 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -846,6 +846,9 @@ function init_column_categories() { a.href = '#dropdown-' + id; div.querySelector('.dropdown-target').id = 'dropdown-' + id; div.insertAdjacentHTML('beforeend', template); + if (feed_web.length < 1) { + div.querySelector('.item.link.website').remove(); + } const b = div.querySelector('button.confirm'); if (b) { b.disabled = false; |
