Fix scemo

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2016-12-07 16:27:51 +01:00
parent 7b00514a54
commit 67bb8a5567
+2 -2
View File
@@ -56,7 +56,7 @@ function logout(){
var bannerSeq = 0;
function bannerRoll(prev,pos,category){
if (bannerSeq < 5){
if (bannerSeq[pos] < 5){
$.ajax({
method:"POST",
url:'getBanner.php?replaced='+prev+'&pos='+pos+'&cat='+category,
@@ -65,7 +65,7 @@ function bannerRoll(prev,pos,category){
$('#'+prev).parent().html(data);
}
});
bannerSeq++;
bannerSeq[pos]++;
console.log(prev + " on seq " + bannerSeq);
}
}