[openstreetmap/openstreetmap-website] Disable turbo on all links inside pagination frames except older/newer (PR #5111)

Tom Hughes notifications at github.com
Fri Aug 23 17:01:13 UTC 2024


It looks like the richtext issue can be fixed with:

```patch
diff --git a/app/assets/javascripts/richtext.js b/app/assets/javascripts/richtext.js
index e069f6f88..d51b8ff96 100644
--- a/app/assets/javascripts/richtext.js
+++ b/app/assets/javascripts/richtext.js
@@ -1,4 +1,4 @@
-$(document).ready(function () {
+$(document).on("turbo:load", function () {
   /*
    * When the text in an edit pane is changed, clear the contents of
    * the associated preview pne so that it will be regenerated when
```

but there's probably a lot more `document.ready` calls that will need to be reviewed as well.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5111#issuecomment-2307473825
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5111/c2307473825 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240823/8e6c28f3/attachment-0001.htm>


More information about the rails-dev mailing list