Add comment to js file - making it clear that it is not used
Foxtons Web Design [Wed, 21 Apr 2010 07:55:50 +0000 (08:55 +0100)]
root/static/js/common.js

index 921c4f4..1ac5793 100755 (executable)
@@ -1,3 +1,4 @@
+// THIS IS NOT USED - it is in the wrapper.tt as js is not parsed by TT (needed for the c.uri_for)
 function compareDiffs(repo, path){
        var f = document.theform;
        if(!repo){
@@ -19,6 +20,5 @@ function compareDiffs(repo, path){
                        }
                }
        }
-       //document.location.href = [% c.uri_for("/" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path) %];
-       document.location.href = "/" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path;
+       document.location.href = [% c.uri_for("/" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path) %];
 }