[openstreetmap/openstreetmap-website] Adapt richtext javascript to Turbo (PR #5116)

Anton Khorev notifications at github.com
Fri Sep 6 07:05:19 UTC 2024


@AntonKhorev commented on this pull request.



> @@ -1,53 +1,61 @@
-$(document).ready(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
-   * the user next switches to it.
-   */
-  $(".richtext_container textarea").change(function () {
-    var container = $(this).closest(".richtext_container");
+(function () {
+  $(document).ready(function () {
+    /*

Removed `$(document).ready`

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

Message ID: <openstreetmap/openstreetmap-website/pull/5116/review/2285113548 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240906/1ac1e737/attachment.htm>


More information about the rails-dev mailing list