Clean up this js file as well.
This commit is contained in:
parent
28d83fda0d
commit
be385deaab
@ -2,9 +2,9 @@ $(function() {
|
||||
if($('#updatecheck').length !== 0){
|
||||
$.getJSON('https://api.github.com/repos/shish/shimmie2/commits', function(data){
|
||||
var c = data[0];
|
||||
$('#updatecheck').html('<a href="'+c['html_url']+'">'+c['sha']+'</a>' + " ("+c['commit']['message']+")");
|
||||
$('#updatecheck').html('<a href="'+ c.html_url+'">'+ c.sha+'</a>' + " ("+ c.commit.message+")");
|
||||
|
||||
var params = $.param({sha: c['sha'], date: c['commit']['committer']['date']});
|
||||
var params = $.param({sha: c.sha, date: c.commit.committer.date});
|
||||
$('#updatelink').attr('href', function(i, val){ return val + "?" + params; });
|
||||
$('#updatelink').text("Update");
|
||||
}).fail(function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user