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.
Showing
- mercurial/templates/gitweb/footer.tmpl 0 additions, 1 deletionmercurial/templates/gitweb/footer.tmpl
- mercurial/templates/gitweb/index.tmpl 0 additions, 1 deletionmercurial/templates/gitweb/index.tmpl
- mercurial/templates/monoblue/footer.tmpl 0 additions, 1 deletionmercurial/templates/monoblue/footer.tmpl
- mercurial/templates/monoblue/index.tmpl 0 additions, 1 deletionmercurial/templates/monoblue/index.tmpl
- mercurial/templates/paper/footer.tmpl 0 additions, 1 deletionmercurial/templates/paper/footer.tmpl
- mercurial/templates/spartan/footer.tmpl 0 additions, 1 deletionmercurial/templates/spartan/footer.tmpl
- mercurial/templates/static/mercurial.js 4 additions, 0 deletionsmercurial/templates/static/mercurial.js
- tests/test-help.t 0 additions, 6 deletionstests/test-help.t
- tests/test-hgweb-commands.t 0 additions, 7 deletionstests/test-hgweb-commands.t
- tests/test-hgweb-descend-empties.t 0 additions, 5 deletionstests/test-hgweb-descend-empties.t
- tests/test-hgweb-diffs.t 0 additions, 8 deletionstests/test-hgweb-diffs.t
- tests/test-hgweb-empty.t 0 additions, 4 deletionstests/test-hgweb-empty.t
- tests/test-hgweb-filelog.t 0 additions, 6 deletionstests/test-hgweb-filelog.t
- tests/test-hgweb-removed.t 0 additions, 2 deletionstests/test-hgweb-removed.t
- tests/test-hgweb.t 0 additions, 3 deletionstests/test-hgweb.t
- tests/test-hgwebdir.t 0 additions, 3 deletionstests/test-hgwebdir.t
- tests/test-highlight.t 0 additions, 2 deletionstests/test-highlight.t
Loading
Please register or sign in to comment