diff options
| author | 2024-11-25 09:17:17 +0100 | |
|---|---|---|
| committer | 2024-11-25 09:17:17 +0100 | |
| commit | 3d8dd6e1fa86538c467cb919235f78fd740c800c (patch) | |
| tree | c019c4d372abaac1c5a570fbeb19ea26ba3093b5 /app | |
| parent | a466e945cdc1d266118b592831a73b09b9e34344 (diff) | |
Fix tag ID uniqueness (#6990)
* Fix tag ID uniqueness
fix https://github.com/FreshRSS/FreshRSS/pull/6052#discussion_r1837266309
* Update app/views/helpers/index/tags.phtml
Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com>
---------
Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com>
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/helpers/index/tags.phtml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/helpers/index/tags.phtml b/app/views/helpers/index/tags.phtml index 3308bd7e9..2c5804372 100644 --- a/app/views/helpers/index/tags.phtml +++ b/app/views/helpers/index/tags.phtml @@ -22,8 +22,9 @@ <?php if (!empty($remainingTags)): // more than 7 tags: show dropdown menu ?> <li class="item tag"> <div class="dropdown"> - <div id="dropdown-tags2-<?= $this->entry->id() ?>" class="dropdown-target"></div> - <a class="dropdown-toggle" href="#dropdown-tags2-<?= $this->entry->id() ?>"><?= _i('down') ?></a> + <?php $dropId = 'dropdown-tags-' . hrtime(true); ?> + <div id="<?= $dropId ?>" class="dropdown-target"></div> + <a class="dropdown-toggle" href="#<?= $dropId ?>"><?= _i('down') ?></a> <ul class="dropdown-menu"> <li class="dropdown-header"><?= _t('index.tag.related') ?></li> <?php if (Minz_Request::controllerName() === 'index'): ?> |
