Mercurial > hg
diff tests/test-hgweb-empty.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 | 80e922479891 |
children | cba4461aa0a0 |
line wrap: on
line diff
--- a/tests/test-hgweb-empty.t Sat Dec 24 15:29:32 2016 -0700 +++ b/tests/test-hgweb-empty.t Tue Jan 10 20:47:48 2017 -0800 @@ -109,7 +109,6 @@ </div> </div> - <script type="text/javascript">process_dates()</script> </body> @@ -220,7 +219,6 @@ </div> </div> - <script type="text/javascript">process_dates()</script> </body> @@ -374,7 +372,6 @@ </div> </div> - <script type="text/javascript">process_dates()</script> </body> @@ -454,7 +451,6 @@ </table> </div> </div> - <script type="text/javascript">process_dates()</script> </body>