]> source.dussan.org Git - gitblit.git/commitdiff
Typo in comment, and optional semicolon in JS
authorTom <tw201207@gmail.com>
Thu, 13 Nov 2014 07:41:25 +0000 (08:41 +0100)
committerTom <tw201207@gmail.com>
Thu, 13 Nov 2014 07:41:25 +0000 (08:41 +0100)
src/main/java/com/gitblit/wicket/pages/BasePage.java
src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js

index 534c196be421357fdb505fd8a0f6594ee272d8d4..fbe5861be1b1314eb40711e06cc55f09fb19aa88 100644 (file)
@@ -515,7 +515,7 @@ public abstract class BasePage extends SessionPage {
         * Adds a HTML script element loading the javascript designated by the given path.\r
         *\r
         * @param scriptPath\r
-        *            page-relative path to the Javascript resource; normally starts with "script/"\r
+        *            page-relative path to the Javascript resource; normally starts with "scripts/"\r
         */\r
        protected void addBottomScript(String scriptPath) {\r
                Component bottomScriptContainer = get("bottomScripts");\r
index faa2f33483fde57e6c5d9e1e3f6201b58a3f113e..2be43172fb0545348bf1a6e3f2a5e5145cdf5e31 100644 (file)
@@ -19,5 +19,5 @@ jQuery(function () {
                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);
-       })
+       });
 });