Patchwork [16,of,20] hgweb: call process_dates after loading a page of entries with ajax

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 9, 2013, 6:57 p.m.
Message ID <acf8517ec927c6559c48.1376074661@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2122/
State Changes Requested
Headers show

Comments

Alexander Plavin - Aug. 9, 2013, 6:57 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1376061350 -14400
#      Fri Aug 09 19:15:50 2013 +0400
# Node ID acf8517ec927c6559c48df802fcc9b98d1e40cd2
# Parent  749f5ba8c323d89b3f856f7b8812653e18f41907
hgweb: call process_dates after loading a page of entries with ajax

This shows relative dates to the user, instead of full format, same as in usual
statically-loaded entries.

Patch

diff -r 749f5ba8c323 -r acf8517ec927 mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Fri Aug 09 19:15:34 2013 +0400
+++ b/mercurial/templates/static/mercurial.js	Fri Aug 09 19:15:50 2013 +0400
@@ -392,6 +392,8 @@ 
                     appendHTML(container, html);
 
                     lastHash = xml.getElementsByTagName('lasthash')[0].firstChild.nodeValue;
+
+                    process_dates();
                 },
                 function onerror(errorText) {
                 },