diff mercurial/templates/monoblue/index.tmpl @ 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 b57d05ca8743
children
line wrap: on
line diff
--- a/mercurial/templates/monoblue/index.tmpl	Sat Dec 24 15:29:32 2016 -0700
+++ b/mercurial/templates/monoblue/index.tmpl	Tue Jan 10 20:47:48 2017 -0800
@@ -30,6 +30,5 @@
     </div>
 
 </div>
-<script type="text/javascript">process_dates()</script>
 </body>
 </html>