summaryrefslogtreecommitdiffstats
path: root/theme/javascript
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-07-30 10:43:10 -0700
committerSamy Pessé <samypesse@gmail.com>2014-07-30 10:43:10 -0700
commitb6af14b13e7992dc2b96615c90a0afbf896769e9 (patch)
tree3b0152cf69c9d4446d4192e2e38588636ef0ea65 /theme/javascript
parentba2134c4809b9a2695de3295efc18002136efcd7 (diff)
downloadgitbook-b6af14b13e7992dc2b96615c90a0afbf896769e9.zip
gitbook-b6af14b13e7992dc2b96615c90a0afbf896769e9.tar.gz
gitbook-b6af14b13e7992dc2b96615c90a0afbf896769e9.tar.bz2
Remove github count stars and watchers
Diffstat (limited to 'theme/javascript')
-rwxr-xr-xtheme/javascript/core/navigation.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js
index 4251ed7..c1018e0 100755
--- a/theme/javascript/core/navigation.js
+++ b/theme/javascript/core/navigation.js
@@ -9,7 +9,6 @@ define([
"core/loading"
], function($, URL, events, state, progress, exercises, quiz, loading) {
var prev, next;
- var githubCountStars, githubCountWatch;
var usePushState = (typeof history.pushState !== "undefined");
@@ -63,11 +62,6 @@ define([
}));
};
- var updateGitHubCounts = function() {
- $(".book-header .count-star span").text(githubCountStars);
- $(".book-header .count-watch span").text(githubCountWatch);
- };
-
var updateNavigationPosition = function() {
var bodyInnerWidth, pageWrapperWidth;
@@ -95,20 +89,6 @@ define([
// Focus on content
$pageWrapper.focus();
- // Update GitHub count
- if (state.githubId) {
- if (githubCountStars) {
- updateGitHubCounts();
- } else {
- $.getJSON("https://api.github.com/repos/"+state.githubId)
- .done(function(repo) {
- githubCountStars = repo.stargazers_count;
- githubCountWatch = repo.subscribers_count;
- updateGitHubCounts();
- });
- }
- }
-
// Send to mixpanel
events.trigger("page.change");
};