Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
30764:e75463e3179f | 30765:eb7de21b15be |
---|---|
107 </script> | 107 </script> |
108 | 108 |
109 </div> | 109 </div> |
110 </div> | 110 </div> |
111 | 111 |
112 <script type="text/javascript">process_dates()</script> | |
113 | 112 |
114 | 113 |
115 </body> | 114 </body> |
116 </html> | 115 </html> |
117 | 116 |
218 </script> | 217 </script> |
219 | 218 |
220 </div> | 219 </div> |
221 </div> | 220 </div> |
222 | 221 |
223 <script type="text/javascript">process_dates()</script> | |
224 | 222 |
225 | 223 |
226 </body> | 224 </body> |
227 </html> | 225 </html> |
228 | 226 |
372 </script> | 370 </script> |
373 | 371 |
374 </div> | 372 </div> |
375 </div> | 373 </div> |
376 | 374 |
377 <script type="text/javascript">process_dates()</script> | |
378 | 375 |
379 | 376 |
380 </body> | 377 </body> |
381 </html> | 378 </html> |
382 | 379 |
452 | 449 |
453 </tbody> | 450 </tbody> |
454 </table> | 451 </table> |
455 </div> | 452 </div> |
456 </div> | 453 </div> |
457 <script type="text/javascript">process_dates()</script> | |
458 | 454 |
459 | 455 |
460 </body> | 456 </body> |
461 </html> | 457 </html> |
462 | 458 |