Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move Twitter widgets to loader, drop facebook code

  • Loading branch information...
commit c6c9ec209952b5b2f36cb8cea8f1d5040f2ee506 1 parent e1f92ff
@evdb evdb authored
View
13 mzalendo/comments2/templates/comments/view.html
@@ -50,19 +50,6 @@
<span class="fb-send" data-href="http://{{ request.get_host }}{{ comment.get_absolute_url }}"></span>
</p>
- <!-- FIXME - still needed here as loaded in loader.js? -->
-
- <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
-
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=158454200832640";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
-
{% endif %}
{% endblock %}
View
1  mzalendo/core/static/js/loader.js
@@ -38,6 +38,7 @@
],
both: [
static_url('js/analytics.js'),
+ '//platform.twitter.com/widgets.js',
'//www.google.com/jsapi' // ?key=INSERT-YOUR-KEY
].concat( extra_js ),
complete: function () {
Please sign in to comment.
Something went wrong with that request. Please try again.