comparison tests/test-hgweb-filelog.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 7817df5585db
children f36dc643ffdc
comparison
equal deleted inserted replaced
30764:e75463e3179f 30765:eb7de21b15be
240 </div> 240 </div>
241 241
242 </div> 242 </div>
243 </div> 243 </div>
244 244
245 <script type="text/javascript">process_dates()</script>
246 245
247 246
248 </body> 247 </body>
249 </html> 248 </html>
250 249
360 </div> 359 </div>
361 360
362 </div> 361 </div>
363 </div> 362 </div>
364 363
365 <script type="text/javascript">process_dates()</script>
366 364
367 365
368 </body> 366 </body>
369 </html> 367 </html>
370 368
472 </div> 470 </div>
473 471
474 </div> 472 </div>
475 </div> 473 </div>
476 474
477 <script type="text/javascript">process_dates()</script>
478 475
479 476
480 </body> 477 </body>
481 </html> 478 </html>
482 479
584 </div> 581 </div>
585 582
586 </div> 583 </div>
587 </div> 584 </div>
588 585
589 <script type="text/javascript">process_dates()</script>
590 586
591 587
592 </body> 588 </body>
593 </html> 589 </html>
594 590
649 </p> 645 </p>
650 </div> 646 </div>
651 </div> 647 </div>
652 </div> 648 </div>
653 649
654 <script type="text/javascript">process_dates()</script>
655 650
656 651
657 </body> 652 </body>
658 </html> 653 </html>
659 654
755 </table> 750 </table>
756 751
757 752
758 753
759 754
760 <script type="text/javascript">process_dates()</script>
761 755
762 <div class="logo"> 756 <div class="logo">
763 <a href="https://mercurial-scm.org/"> 757 <a href="https://mercurial-scm.org/">
764 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a> 758 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
765 </div> 759 </div>