screenshots animation js: added "new" (code checker complained about it missing), reformatted src

This commit is contained in:
Thomas Waldmann 2013-10-03 16:04:59 +02:00
parent b9a73eab6c
commit 01b0ddd97b

View File

@ -90,7 +90,10 @@
</a>
<script>
var id = 0;
var srcs = Array("{% static 'screenshots/hostview.png' %}","{% static 'screenshots/help.png' %}","{% static 'screenshots/overview.png' %}","{% static 'screenshots/generatesecret.png' %}");
var srcs = new Array("{% static 'screenshots/hostview.png' %}",
"{% static 'screenshots/help.png' %}",
"{% static 'screenshots/overview.png' %}",
"{% static 'screenshots/generatesecret.png' %}");
setInterval(function(){
$('#screenshots').attr('src', srcs[id]);
$('#screenshots_url').attr('href', srcs[id]);