[openstreetmap/openstreetmap-website] Map Data checkbox: perhaps use toggle slider instead (PR #5009)
David Tsiklauri
notifications at github.com
Thu Jul 25 09:50:49 UTC 2024
@nertc commented on this pull request.
> @@ -86,6 +86,16 @@ OSM.initializeDataLayer = function (map) {
if (dataLoader) dataLoader.abort();
+ let spanLoading = $("#layers-data-loading");
+
+ if (!spanLoading.length) {
+ spanLoading = $("<span>")
+ .attr("id", "layers-data-loading")
+ .appendTo($("#label-layers-data"));
+
+ spanLoading.append(" " + I18n.t("javascripts.map.layers.loading"));
@HolgerJeromin Now it works this way when Arabic is chosen as a default language, spinner is shown on the left side of the text.
https://github.com/user-attachments/assets/21d7c1ef-8bec-4664-9236-7ecc5aef5b81
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5009#discussion_r1691166835
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5009/review/2198841586 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240725/2ba352c7/attachment.htm>
More information about the rails-dev
mailing list