From 64afb5f7ea8da0a688f102e8507f9df79ee9c011 Mon Sep 17 00:00:00 2001 From: Geckotokay Date: Tue, 27 Mar 2012 11:43:15 +0300 Subject: [PATCH] Added one new option: 'paginationPos'. This option determines where the pagination is added in the source code. The options are: top, bottom --- responsiveslides.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/responsiveslides.js b/responsiveslides.js index 77c46ba..49f0723 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -6,6 +6,7 @@ var settings = $.extend({ "auto": true, // Boolean: Animate automatically "pagination": false, // Boolean: Show pagination + "paginationPos": "bottom", // String: define the position in source code, available options: "top" or "bottom" "nav": false, // Boolean: Show navigation "prevText": "Previous", // String: Text for the "previous" button "nextText": "Next", // String: Text for the "next" button @@ -98,7 +99,8 @@ var $tabs = $pagination.find("a"); // Inject pagination - $this.after($pagination); + if(settings.paginationPos === "top") { $this.before($pagination); } + else { $this.after($pagination); } } // Select active tab