Skip to content

Commit

Permalink
Merge pull request #34 from arthurk/protocol-relative-urls
Browse files Browse the repository at this point in the history
Removed HTTP protocol specifier from templates/* and templatetags/
  • Loading branch information
derekjamescurtis committed Jul 4, 2014
2 parents 1b95db6 + eacd491 commit 2cd9d8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion disqus/templates/disqus/num_replies.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
2 changes: 1 addition & 1 deletion disqus/templates/disqus/recent_comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
{{ config|safe }}
{% endblock %}
</script>
<script src='http://{{ shortname }}.disqus.com/recent_comments_widget.js?num_items={{ num_items }}&hide_avatars={{ hide_avatars }}&avatar_size={{ avatar_size }}&excerpt_length={{ excerpt_length }}'>
<script src='//{{ shortname }}.disqus.com/recent_comments_widget.js?num_items={{ num_items }}&hide_avatars={{ hide_avatars }}&avatar_size={{ avatar_size }}&excerpt_length={{ excerpt_length }}'>
</script>
</div>
6 changes: 3 additions & 3 deletions disqus/templates/disqus/show_comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
/* ]]> */
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
<noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="//disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
2 changes: 1 addition & 1 deletion disqus/templatetags/disqus_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def disqus_dev():
if settings.DEBUG:
return """<script type="text/javascript">
var disqus_developer = 1;
var disqus_url = 'http://%s/';
var disqus_url = '//%s/';
</script>""" % Site.objects.get_current().domain
return ""

Expand Down

0 comments on commit 2cd9d8a

Please sign in to comment.