From dbcbf8a3e53437f6cd39825a7c58b95242e96dc2 Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Mon, 18 Jul 2011 12:13:50 +0400 Subject: [PATCH] click moved to the inner element to remove event handler from the slide number --- scripts/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/script.js b/scripts/script.js index 5d57dd2..a1fa491 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -7,7 +7,7 @@ slideList = []; for(var i = 0, slidesLength = slides.length; i < slidesLength; i++) { - slides[i].addEventListener('click', enterFull, false); + slides[i].firstChild.addEventListener('click', enterFull, false); slideList[i] = slides[i].id; }