Browse Source

Allow configuring a selector for pager items (instead of hard-coding the 'a' tag).

pull/214/head
Jonathan Hedstrom 12 years ago
parent
commit
d63a0c54fd
  1. 3
      responsiveslides.js

3
responsiveslides.js

@ -26,6 +26,7 @@
"maxwidth": "", // Integer: Max-width of the slideshow, in pixels "maxwidth": "", // Integer: Max-width of the slideshow, in pixels
"navContainer": "", // Selector: Where auto generated controls should be appended to, default is after the <ul> "navContainer": "", // Selector: Where auto generated controls should be appended to, default is after the <ul>
"manualControls": "", // Selector: Declare custom pager navigation "manualControls": "", // Selector: Declare custom pager navigation
"tabSelector": "a", // Selector: Element within the pager to target for each item
"namespace": "rslides", // String: change the default namespace used "namespace": "rslides", // String: change the default namespace used
"before": $.noop, // Function: Before callback "before": $.noop, // Function: Before callback
"after": $.noop // Function: After callback "after": $.noop // Function: After callback
@ -213,7 +214,7 @@
// If we have a pager, we need to set up the selectTab function // If we have a pager, we need to set up the selectTab function
if (settings.pager || settings.manualControls) { if (settings.pager || settings.manualControls) {
$tabs = $pager.find('a'); $tabs = $pager.find(settings.tabSelector);
// Select pager item // Select pager item
selectTab = function (idx) { selectTab = function (idx) {

Loading…
Cancel
Save