From 217e79691ff8c69c9d03fb054596df359290e2ae Mon Sep 17 00:00:00 2001 From: Charles Baynham Date: Fri, 4 Jul 2014 15:19:42 +0100 Subject: [PATCH 1/3] Indentation from 130735b causing compilation error Line 519 was indented with tabs instead of spaces which caused coffee-script to fail. --- source/jquery.slides.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/jquery.slides.coffee b/source/jquery.slides.coffee index cdeb9ba..d07f37a 100755 --- a/source/jquery.slides.coffee +++ b/source/jquery.slides.coffee @@ -516,7 +516,7 @@ # Stop/pause slideshow on mouse enter slidesContainer.bind "mouseenter", => clearTimeout @data.restartDelay - $.data this, "restartDelay", null + $.data this, "restartDelay", null @stop() # Play slideshow on mouse leave From 0d525c3bc971bf939560487fbd0ed6dc8c600fdb Mon Sep 17 00:00:00 2001 From: Charles Baynham Date: Thu, 21 Aug 2014 15:02:24 +0100 Subject: [PATCH 2/3] Allow users to make their own pagination and/or prevent it being generated --- source/jquery.slides.coffee | 73 ++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 26 deletions(-) diff --git a/source/jquery.slides.coffee b/source/jquery.slides.coffee index d07f37a..625235c 100755 --- a/source/jquery.slides.coffee +++ b/source/jquery.slides.coffee @@ -47,9 +47,12 @@ # Pagination settings active: true # [boolean] Create pagination items. - # You cannot use your own pagination. effect: "slide" # [string] Can be either "slide" or "fade". + generate: true + # [boolean] Generate pagination nav. If false, search for a + # ul.slidesjs-navigation.slidesjs-pagination > li > a + # structure. play: # Play and stop button setting. active: false @@ -232,31 +235,49 @@ if @options.pagination.active - # Create unordered list pagination - pagination = $("