Patchwork [3,of,3,V2] hgweb: call process_dates after adding ajax-received entries to the page

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 17, 2013, 10:32 p.m.
Message ID <cc33d3be1c64be93bf38.1376778726@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2210/
State Deferred
Headers show

Comments

Alexander Plavin - Aug. 17, 2013, 10:32 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1376740385 -14400
#      Sat Aug 17 15:53:05 2013 +0400
# Node ID cc33d3be1c64be93bf38452e287a1a4a929dd97f
# Parent  0d194d5be6416a785f7128d37a5f944af21d999c
hgweb: call process_dates after adding ajax-received entries to the page

This gives correct date display for entries loaded with ajax.

Patch

diff -r 0d194d5be641 -r cc33d3be1c64 mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Sun Aug 18 00:07:41 2013 +0400
+++ b/mercurial/templates/static/mercurial.js	Sat Aug 17 15:53:05 2013 +0400
@@ -374,6 +374,7 @@ 
                     while (nodes.length) {
                         container.appendChild(nodes[0]);
                     }
+                    process_dates();
                 },
                 function onerror(errorText) {
                 },