SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 96686f61 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug javascript for newsticker

parent 5ccdca76
No related branches found
No related tags found
No related merge requests found
......@@ -53,10 +53,10 @@ NewsTicker = (function() {
$.get(this.options.url + '?format=json')
.done(function(data) {
var counter = 1
var total = data.length
var total = data.count
setInterval(function(){
self.get_item(data[counter % total]);
self.get_item(data.results[counter % total]);
counter += 1
}, self.options.interval);
})
......
......@@ -23,7 +23,7 @@
{% endif %}
<!-- News -->
<div id="news2">
<div id="news">
<h2 class="title">
News
<small><a href="{% url 'scipost:feeds' %}"><i class="fa fa-rss"></i></a></small>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment