From 1345d499fc2525ef0cdfc1c26f199ba464deb428 Mon Sep 17 00:00:00 2001 From: Oneilos Date: Thu, 17 Jul 2014 15:28:02 +0200 Subject: [PATCH] Ability to put a label in the controlNav --- jquery.nivo.slider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.nivo.slider.js b/jquery.nivo.slider.js index 8b0a774..a84fcfa 100644 --- a/jquery.nivo.slider.js +++ b/jquery.nivo.slider.js @@ -151,6 +151,7 @@ child = child.find('img:first'); } if(child.attr('data-thumb')) vars.controlNavEl.append(''); + else if(child.attr('data-label')) vars.controlNavEl.append(''+ child.data('label') +''); } else { vars.controlNavEl.append(''+ (i + 1) +''); } @@ -659,4 +660,4 @@ $.fn._reverse = [].reverse; -})(jQuery); \ No newline at end of file +})(jQuery);