aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-11-25 09:17:17 +0100
committerGravatar GitHub <noreply@github.com> 2024-11-25 09:17:17 +0100
commit3d8dd6e1fa86538c467cb919235f78fd740c800c (patch)
treec019c4d372abaac1c5a570fbeb19ea26ba3093b5 /app
parenta466e945cdc1d266118b592831a73b09b9e34344 (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.phtml5
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'): ?>