From 1128191c63bbd4308d6154e98bfdbea7f0ca3747 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 21 Oct 2010 14:12:44 +0200 Subject: [PATCH] Update the last update date, too. --- src/main/resources/templates/include/viewSone.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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> -- 2.7.4