From: David ‘Bombe’ Roden Date: Thu, 21 Oct 2010 12:12:44 +0000 (+0200) Subject: Update the last update date, too. X-Git-Tag: 0.1-RC1~118 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1128191c63bbd4308d6154e98bfdbea7f0ca3747;p=Sone.git Update the last update date, too. --- diff --git a/src/main/resources/templates/include/viewSone.html b/src/main/resources/templates/include/viewSone.html index af7c8be..e054122 100644 --- a/src/main/resources/templates/include/viewSone.html +++ b/src/main/resources/templates/include/viewSone.html @@ -2,20 +2,21 @@ function getStatus(soneId) { $.getJSON("ajax/getSoneStatus.ajax", {"sone": soneId}, function(data, textStatus) { - updateStatus(soneId, data.status, data.modified); + updateStatus(soneId, data.status, data.modified, data.lastUpdated); setTimeout(function() { getStatus(soneId); }, 5000); }); } - function updateStatus(soneId, status, modified) { + function updateStatus(soneId, status, modified, lastUpdated) { $("#sone .sone#" + soneId). toggleClass("unknown", status == "unknown"). toggleClass("idle", status == "idle"). toggleClass("inserting", status == "inserting"). toggleClass("downloading", status == "downloading"). toggleClass("modified", modified); + $("#sone .sone#" + soneId + " .last-update span.time").text(lastUpdated); } $(document).ready(function() { @@ -31,7 +32,7 @@
⬊
⬈
✔
-
<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">
+
<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">
<% sone.requestUri|substring start=4 length=43|html>
<%ifnull ! currentSone>