Permalink
Browse files

Merge pull request #1052 from mfairchild365/carousel-a11y

 carousel: Disable The direction nav by default
  • Loading branch information...
tlemburg committed Feb 20, 2017
2 parents e67692e + ad649e1 commit 2bde94c5cd76ed656645941813a8dea8ae9f0a31
Showing with 8 additions and 2 deletions.
  1. +8 −2 wdn/templates_4.1/scripts/carousel.js
@@ -18,9 +18,15 @@ define([
return {
initialize : function(callback) {
$(function() {
var defaults = WDN.getPluginParam('carousel', 'defaults') || {};
var userConfig = WDN.getPluginParam('carousel', 'defaults') || {};
var defaultConfig = {
directionNav: false
};

var localConfig = $.extend({}, defaultConfig, userConfig);

$(defaultSel).addClass(flexCls);
$('.' + flexCls).flexslider(defaults);
$('.' + flexCls).flexslider(localConfig);
initd = true;

if (callback) {

0 comments on commit 2bde94c

Please sign in to comment.