Tom
2014-11-13 b95f47005679e25e2da67e0747edfec81d973cfe
Typo in comment, and optional semicolon in JS
2 files modified
4 ■■■■ changed files
src/main/java/com/gitblit/wicket/pages/BasePage.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js 2 ●●● patch | view | raw | blame | history
src/main/java/com/gitblit/wicket/pages/BasePage.java
@@ -515,7 +515,7 @@
     * Adds a HTML script element loading the javascript designated by the given path.
     *
     * @param scriptPath
     *            page-relative path to the Javascript resource; normally starts with "script/"
     *            page-relative path to the Javascript resource; normally starts with "scripts/"
     */
    protected void addBottomScript(String scriptPath) {
        Component bottomScriptContainer = get("bottomScripts");
src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js
@@ -19,5 +19,5 @@
        var w = 1.0 - (this.scrollLeft / (this.scrollWidth - (this.clientWidth || this.offsetWidth)));
        // We encode the target img id in the slider's id: slider-imgdiffNNN.
        jQuery('#' + this.id.substr(this.id.indexOf('-') + 1)).css("opacity", w);
    })
    });
});