diff --git a/htdocs/site/js/github.js b/htdocs/site/js/github.js index 1b2ff4944..55fb55a27 100644 --- a/htdocs/site/js/github.js +++ b/htdocs/site/js/github.js @@ -1,32 +1,32 @@ /*! Inspired by: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html */ -/* jshint quotmark:true, jquery:true */ +/* jshint jquery:true */ -'use strict'; +"use strict"; // htmlEntities taken from http://css-tricks.com/snippets/javascript/htmlentities-for-javascript/ function htmlEntities(str) { - return String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); + return String(str).replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); } jQuery.fn.listCommits = function(username, repository, branch) { - this.html('Querying GitHub for recent commits…'); + this.html("Querying GitHub for recent commits…"); var target = this; - $.getJSON('https://api.github.com/repos/' + username + '/' + repository + '/commits?sha=' + branch + '&callback=?', function(response) { + $.getJSON("https://api.github.com/repos/" + username + "/" + repository + "/commits?sha=" + branch + "&callback=?", function(response) { var commits = response.data; - var list = $('