diff --git a/scripts/script.js b/scripts/script.js index 1e45a42..53d25f4 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -62,7 +62,7 @@ if(prevent) e.preventDefault(); } if(e.type == 'click') { - current = slideList.indexOf(e.target.parentNode.id); + current = slideList.indexOf(e.target.parentNode.parentNode.id); } } else { current = (current+1) ? current : 0;