Skip to content

Commit

Permalink
one more step to go slider in slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Strange committed Feb 14, 2012
1 parent ce83d23 commit 9d1e027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/magic-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ $.fn.magicSlider = function(settings) {
};

function moveToPanel(targetPanelIndex) {
var navList = slider.parents('div.magic-slider-wrapper').find('.magic-nav ul');
var navList = $('#magic-nav-' + sliderID + ' ul');
var currentLink = navList.find('li:eq(' + (targetPanelIndex - 1) + ') a');
navList.find('a').removeClass('current');
currentLink.addClass('current');
Expand Down

0 comments on commit 9d1e027

Please sign in to comment.