comparison mercurial/templates/gitweb/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 20ed56771b21
children
comparison
equal deleted inserted replaced
30764:e75463e3179f 30765:eb7de21b15be
20 {entries%indexentry} 20 {entries%indexentry}
21 </table> 21 </table>
22 <div class="page_footer"> 22 <div class="page_footer">
23 {motd} 23 {motd}
24 </div> 24 </div>
25 <script type="text/javascript">process_dates()</script>
26 </body> 25 </body>
27 </html> 26 </html>