[openstreetmap/openstreetmap-website] Add a "tile details" view accessed from the context menu (#1472)

Ilya Zverev notifications at github.com
Tue Mar 7 10:20:13 UTC 2017


Zverik commented on this pull request.



> +          if (matches)
+          {
+            var state = matches[1],
+                rendered = Date.parse(matches[2]),
+                accessed = Date.parse(matches[3]);
+
+            $("#tileinfo-state").text(I18n.t("javascripts.tileinfo.state." + state));
+            $("#tileinfo-rendered").text(I18n.l("time.formats.friendly", rendered));
+            $("#tileinfo-accessed").text(I18n.l("time.formats.friendly", accessed));
+          }
+        }
+      });
+    }
+    else
+    {
+      $("#tileinfo-status").hide();

Ah, so it adds an attribute to a loaded page, and it is cleared every time a new sidebar content is loaded? Okay then.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1472#discussion_r104633290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170307/d21caabe/attachment.html>


More information about the rails-dev mailing list