Tom
2014-11-12 bae957cd80e59f16fe011dda45ce2624e2ffd4d2
refs
author Tom <tw201207@gmail.com>
Wednesday, November 12, 2014 14:19 -0500
committer Tom <tw201207@gmail.com>
Wednesday, November 12, 2014 14:19 -0500
commitbae957cd80e59f16fe011dda45ce2624e2ffd4d2
tree f0530841434f05184aa45892d42c0f4218e923b8 tree | zip | gz
parent 7dd99fe7474604f314c01bcd4123eb7cbacfb583 view | diff
Support for adding bottom scripts

Needed if we want to have opacity changes in image diffs because
jQuery is bottom-loaded, so we must ensure that any scripts using
jQuery are run later.

I'm not a Wicket expert; maybe there's a cleverer or cleaner way to do
this. There is a JavascriptUtils class in Wicket, but that writes to
the response -- I don't quite see how that would give me control over
the precise placement of the scripts to ensure they come after that
bottom-loaded jQuery.
2 files modified
40 ■■■■■ changed files
src/main/java/com/gitblit/wicket/pages/BasePage.html 1 ●●●● diff | view | raw | blame | history
src/main/java/com/gitblit/wicket/pages/BasePage.java 39 ●●●●● diff | view | raw | blame | history