comparison tests/test-hgwebdir.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 c4fc33c477da
children 636cf3f7620d
comparison
equal deleted inserted replaced
30764:e75463e3179f 30765:eb7de21b15be
896 896
897 </tbody> 897 </tbody>
898 </table> 898 </table>
899 </div> 899 </div>
900 </div> 900 </div>
901 <script type="text/javascript">process_dates()</script>
902 901
903 902
904 </body> 903 </body>
905 </html> 904 </html>
906 905
967 966
968 </tbody> 967 </tbody>
969 </table> 968 </table>
970 </div> 969 </div>
971 </div> 970 </div>
972 <script type="text/javascript">process_dates()</script>
973 971
974 972
975 </body> 973 </body>
976 </html> 974 </html>
977 975
1405 1403
1406 </tbody> 1404 </tbody>
1407 </table> 1405 </table>
1408 </div> 1406 </div>
1409 </div> 1407 </div>
1410 <script type="text/javascript">process_dates()</script>
1411 1408
1412 1409
1413 </body> 1410 </body>
1414 </html> 1411 </html>
1415 1412