[openstreetmap/openstreetmap-website] Add a "tile details" view accessed from the context menu (#1472)
Tom Hughes
notifications at github.com
Tue Mar 7 10:07:06 UTC 2017
tomhughes 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();
Well the page will have been reloaded by then won't it? That will only be an issue if we start updating the details on a layer change.
--
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_r104630553
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170307/52879b56/attachment.html>
More information about the rails-dev
mailing list