Skip to content

Commit

Permalink
- commit to see if the new git config email setting works or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
sr3d committed Aug 17, 2010
1 parent 7d8c0e1 commit 8e5a1c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
7 changes: 1 addition & 6 deletions github_jsonp.php
Expand Up @@ -10,12 +10,7 @@
// Get the url of to be proxied
// Is it a POST or a GET?
# Lifted from Symfony
function escape_javascript($javascript = '') {
$javascript = preg_replace('/\r\n|\n|\r/', "\\n", $javascript);
$javascript = preg_replace('/(["\'])/', '\\\\\1', $javascript);
return $javascript;
}
# This script requires PHP5.2 (for the json_encode method);

$url = ($_POST['url']) ? $_POST['url'] : $_GET['url'];

Expand Down
6 changes: 2 additions & 4 deletions javascripts/f.js
Expand Up @@ -137,7 +137,7 @@ window.F = Class.create({
);
}
commitsHTML.push('</div>');

var html = [
'<div>Name: ',
'<a href=',
Expand All @@ -163,8 +163,6 @@ window.F = Class.create({
];
$('info').update( html.join(' '));
}.bind(this)});

// console.log("path %o", path);
}


Expand All @@ -181,7 +179,7 @@ window.F = Class.create({

lines.push( [
'<div class=l>',
text[i] ? text[i] : '<br/>',
text[i] ? text[i].replace('<', '&lt;').replace('>', '&gt;') : '<br/>',
'</div>'
].join(''));

Expand Down
5 changes: 3 additions & 2 deletions javascripts/gh.js
@@ -1,13 +1,14 @@
window.AR = Ajax.JSONRequest;

window.GH = {
hash: {}
,proxy: 'http://marrilydev.com/misc/githubfinder/github_jsonp.php?url='
,proxy: 'http://hoavui.com/github_jsonp.php?url='
,api: 'http://github.com/api/v2/json'

,Commits: {
listBranch: function(user_id, repository, branch, options ) {
options = Object.extend({
onSuccess: function(response) {
debugger
var commits = eval('(' + response.responseText +')');
onData( commits );
}
Expand Down

0 comments on commit 8e5a1c1

Please sign in to comment.