[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][FIX] Tracker field: Prevent scroll to top when clicking Copy-permanent-name
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <688cb7b35d4f8_2cd5f20747d2@gitlab-sidekiq-low-urgency-cpu-bound-v2-78ddbdb4c5-vh8dd.mail> |
ushindi bienvenu pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
185df429 by Camile at 2025-08-01T12:43:03+00:00
[BP][FIX] Tracker field: Prevent scroll to top when clicking Copy-permanent-name
---
* [FIX] Tracker field: Prevent scroll to top when clicking Copy-permanent-name
---
* [FIX] Tracker field: Prevent scroll to top when clicking Copy-permanent-name
See merge request tikiwiki/tiki!7965
See merge request tikiwiki/tiki!8113
- - - - -
1 changed file:
- lib/jquery_tiki/tiki-trackers.js
Changes:
=====================================
lib/jquery_tiki/tiki-trackers.js
=====================================
@@ -67,9 +67,10 @@
.append(
$('<div class="small">')
.text(field.permName)
- .append($(`<a href="#" id="copy${field.fieldId}" class="text-info pl-1 tips small" title="${tr("Copy permanent name")}
+ .append($(`<a href="javascript:void(0)" id="copy${field.fieldId}" class="text-info pl-1 tips small" title="${tr("Copy permanent name")}
"><span class="icon fas fa-copy"/></a>`)
.tiki('copy')(() => field.permName, function () {
+ showMessage(tr('Copied to clipboard'), "success");
$(this).animate({ opacity: .5 }, 200, function () {
$(this).animate({ opacity: 1 }, 500);
});
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/185df429a494a30fafa206ed29b7fe950c5d2f33
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/185df429a494a30fafa206ed29b7fe950c5d2f33
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs