[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] Tracker field: Prevent scroll to top when clicking Copy-permanent-name

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68d109f4e541d_2cdf0c0254c7@gitlab-sidekiq-low-urgency-cpu-bound-v2-5bf7764645-pkvxl.mail>

Sammy Ndabo pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
09037062 by Camile at 2025-09-22T08:27:38+00:00
[BP][FIX] Tracker field: Prevent scroll to top when clicking Copy-permanent-name
---
* [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

See merge request tikiwiki/tiki!8358

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-trackers.js


Changes:

=====================================
lib/jquery_tiki/tiki-trackers.js
=====================================
@@ -112,9 +112,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/09037062b94c6894da3c958459c3ce713986a81d

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/09037062b94c6894da3c958459c3ce713986a81d
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.