diff options
| author | Brian Ford | 2013-11-21 11:31:24 -0800 |
|---|---|---|
| committer | Brian Ford | 2013-11-22 16:27:05 -0800 |
| commit | 84e0eea1645521f6a990a4dabeb53407db86eda2 (patch) | |
| tree | ce322d38222331530c2e6483419fa8c912c9a29c /docs/src/templates/js/docs.js | |
| parent | bcf12e70e5350595124034c75f6a04e0725205c8 (diff) | |
| download | angular.js-84e0eea1645521f6a990a4dabeb53407db86eda2.tar.bz2 | |
chore(docs): remove Disqus comments
We don't actively moderate these comments, and they range from
out of date, to inflammatory, to spam. Going forward, improvements
to the docs should be done via a PR, and questions should go on
StackOverflow where they can be curated and kept up to date by
AngularJS developers who help out there.
Diffstat (limited to 'docs/src/templates/js/docs.js')
| -rw-r--r-- | docs/src/templates/js/docs.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js index 5a99ef46..06cb91c2 100644 --- a/docs/src/templates/js/docs.js +++ b/docs/src/templates/js/docs.js @@ -680,7 +680,6 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie var currentPageId = $location.path(); $scope.partialTitle = $scope.currentPage.shortName; $window._gaq.push(['_trackPageview', currentPageId]); - loadDisqus(currentPageId); }; /** stores a cookie that is used by apache to decide which manifest ot send */ @@ -892,29 +891,6 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie return namespace; } } - - - function loadDisqus(currentPageId) { - // http://docs.disqus.com/help/2/ - window.disqus_shortname = 'angularjs-next'; - window.disqus_identifier = currentPageId; - window.disqus_url = 'http://docs.angularjs.org' + currentPageId; - - if ($location.host() == 'localhost') { - return; // don't display disqus on localhost, comment this out if needed - //window.disqus_developer = 1; - } - - // http://docs.disqus.com/developers/universal/ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = 'http://angularjs.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || - document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - angular.element(document.getElementById('disqus_thread')).html(''); - } }; |
