Mercurial > hg
diff tests/test-hgweb.t @ 30765:eb7de21b15be
hgweb: call process_dates() via DOM event listener
All the hgweb templates include mercurial.js in their header. All
the hgweb templates have the same <script> boilerplate to run
process_dates(). This patch factors that function call into
mercurial.js as part of a DOMContentLoaded event listener.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 10 Jan 2017 20:47:48 -0800 |
parents | 8f34e217338b |
children | c208bc65318a |
line wrap: on
line diff
--- a/tests/test-hgweb.t Sat Dec 24 15:29:32 2016 -0700 +++ b/tests/test-hgweb.t Tue Jan 10 20:47:48 2017 -0800 @@ -99,7 +99,6 @@ </div> </div> - <script type="text/javascript">process_dates()</script> </body> @@ -207,7 +206,6 @@ </div> </div> - <script type="text/javascript">process_dates()</script> </body> @@ -318,7 +316,6 @@ </table> </div> </div> - <script type="text/javascript">process_dates()</script> </body>