From d84836930d34dc81667f2ba99f8bae7d1760a32e Mon Sep 17 00:00:00 2001 From: Sandro Miguel Marques Date: Sat, 25 Jun 2016 22:46:11 +0100 Subject: [PATCH] Bind click actions to the controls If "prevSelector" and "nextSelector" configuration options are set but "prevText" and "nextText" are empty, for example, nextText:'', the buttons don't work. So, I bound the click event to these controls. --- src/js/jquery.bxslider.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/jquery.bxslider.js b/src/js/jquery.bxslider.js index a0a834b6..0d02e768 100644 --- a/src/js/jquery.bxslider.js +++ b/src/js/jquery.bxslider.js @@ -667,6 +667,8 @@ // bind click actions to the controls slider.controls.next.bind('click touchend', clickNextBind); slider.controls.prev.bind('click touchend', clickPrevBind); + $(slider.settings.prevSelector).bind('click', clickPrevBind); + $(slider.settings.nextSelector).bind('click', clickNextBind); // if nextSelector was supplied, populate it if (slider.settings.nextSelector) { $(slider.settings.nextSelector).append(slider.controls.next);