From patchwork Sat Aug 17 22:32:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3, of, 3, V2] hgweb: call process_dates after adding ajax-received entries to the page From: Alexander Plavin X-Patchwork-Id: 2210 Message-Id: To: mercurial-devel@selenic.com Date: Sun, 18 Aug 2013 02:32:06 +0400 # HG changeset patch # User Alexander Plavin # 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. 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) { },