[openstreetmap/openstreetmap-website] Add Turbo to replace custom JS (PR #4562)
Gregory Igelmund
notifications at github.com
Wed Mar 20 19:24:15 UTC 2024
@grekko commented on this pull request.
> });
- $(".inbox-mark-read").on("ajax:success", function (event, data) {
- updateHtml(data);
- updateReadState(this, true);
+ $(".messages-table .message-summary").on("turbo:before-morph-element", function (event) {
+ if (event.target.querySelector("[data-is-destroyed]")) {
For consistency I dropped jQuery in there.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4562#discussion_r1532719377
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4562/review/1949927948 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240320/6cd2fe54/attachment-0001.htm>
More information about the rails-dev
mailing list