Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added compare diffs feature and fixed a couple of css issues
- Loading branch information
Foxtons Web Design
committed
Apr 8, 2010
1 parent
0ad8d19
commit 71eba67
Showing
7 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function compareDiffs(repo, path){ | ||
var f = document.theform; | ||
if(!repo){ | ||
var repo = ""; | ||
} | ||
if(!path){ | ||
var path = ""; | ||
} | ||
var sha1,sha2; | ||
for(var i=0,len=f.length;i<len;i++){ | ||
if(f[i].name == "sha1_a"){ | ||
if(f[i].checked){ | ||
sha1 = f[i].value; | ||
} | ||
} | ||
if(f[i].name == "sha1_b"){ | ||
if(f[i].checked){ | ||
sha2 = f[i].value; | ||
} | ||
} | ||
} | ||
//document.location.href = [% c.uri_for("/" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path) %]; | ||
document.location.href = "/" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters