summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom <tw201207@gmail.com>2014-11-13 08:41:25 +0100
committerTom <tw201207@gmail.com>2014-11-13 08:41:25 +0100
commitb95f47005679e25e2da67e0747edfec81d973cfe (patch)
tree3ee93a0f3d9f7dad0fa6e99fb7ada15d8d0c9b73
parent3e1336cc6d32511daf2acab9c45a517cd3b10058 (diff)
downloadgitblit-b95f47005679e25e2da67e0747edfec81d973cfe.tar.gz
gitblit-b95f47005679e25e2da67e0747edfec81d973cfe.zip
Typo in comment, and optional semicolon in JS
-rw-r--r--src/main/java/com/gitblit/wicket/pages/BasePage.java2
-rw-r--r--src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/BasePage.java b/src/main/java/com/gitblit/wicket/pages/BasePage.java
index 534c196b..fbe5861b 100644
--- a/src/main/java/com/gitblit/wicket/pages/BasePage.java
+++ b/src/main/java/com/gitblit/wicket/pages/BasePage.java
@@ -515,7 +515,7 @@ public abstract class BasePage extends SessionPage {
* 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");
diff --git a/src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js b/src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js
index faa2f334..2be43172 100644
--- a/src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js
+++ b/src/main/java/com/gitblit/wicket/pages/scripts/imgdiff.js
@@ -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);
- })
+ });
});