Fix header interractive actions: buttons and github

This commit is contained in:
Samy Pessé
2014-04-14 16:29:02 +02:00
parent 8c4cfed609
commit 6da48764e8
6 changed files with 26 additions and 12 deletions
-7
View File
@@ -17,13 +17,6 @@ require([
if (state.githubId) {
// Initialize storage
storage.setBaseKey(state.githubId);
// Star and watch count
$.getJSON("https://api.github.com/repos/"+state.githubId)
.done(function(repo) {
$book.find(".count-star span").text(repo.stargazers_count);
$book.find(".count-watch span").text(repo.subscribers_count);
});
}
// Init sidebar