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

Alexander Plavin alexander at plav.in
Fri Aug 9 13:57:41 CDT 2013


# HG changeset patch
# User Alexander Plavin <alexander at 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.

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) {
                 },


More information about the Mercurial-devel mailing list