jQuery-EasyTabs icon indicating copy to clipboard operation
jQuery-EasyTabs copied to clipboard

Previous and Next buttons not working properly

Open hiren-talsaniya opened this issue 11 years ago • 2 comments

Hello,

Please check "Previous and Next buttons" option it is not working properly. When we reach the last tab and than click on button it will active all tabs.

error

hiren-talsaniya avatar Sep 30 '13 11:09 hiren-talsaniya

Is this due to CSS only, have you checked?

ghost avatar Jan 14 '14 22:01 ghost

change the click event to...

$('.next-tab, .prev-tab').click(function() { var i = parseInt($(this).attr('rel')); if ( i >= 0 ) { console.log("$(this).attr('rel') = "+$(this).attr('rel')); var tabSelector = $tabs.children('a:eq(' + i + ')').attr('href'); $tabContainer.easytabs('select', tabSelector); } return false; });

Otherwise it seems to want to try and go after a tab with 'rel' undefined and it gets all weird.

CableGuy67 avatar Jan 15 '14 15:01 CableGuy67