fixing backdropfunction some

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-03 14:37:10 +01:00
parent 178ad72125
commit d1afc2d262
2 changed files with 3 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ var Nochan = {
},
add_backdrop: function(list, i) {
if(i >= list.length || i >= 12) i = 0;
if(i >= list.length || i >= 8) i = 0;
var id = list[i][1];
@@ -173,6 +173,7 @@ var Nochan = {
setTimeout(function(){
if(Nochan.times_rotated == 50 && frontpage){
Nochan.times_rotated = 0;
i = 0;
socket.emit("frontpage_lists");
}else if(frontpage){
Nochan.times_rotated += 1;