The CSS class for the active pager in a slideshow I made is not updating. The class name is "views_slideshow_active_pager_field_item" (I think). That class doesn't change when the active slide changes.

Check out the slideshow at the bottom of: http://youghalrealty-drupal.noelmcavoy.com/node/3

Jquery info is attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bleen’s picture

confirmed (and subscribing)

Circlefusion1’s picture

I think this is the same issue.

http://drupal.org/node/1144512

it's fixed in the latest dev version.

bleen’s picture

Status: Active » Closed (duplicate)

Yup

codybarr’s picture

Status: Closed (duplicate) » Active

I tried updating to the latest dev version and now the pager isn't rendering at all. OK. Its rendering now but still having the same problem.

codybarr’s picture

FileSize
40.25 KB
42.28 KB

Some screenshots

redndahead’s picture

Status: Active » Closed (works as designed)

I would have to look at the site to get a better idea on what is happening. Use firebug to make sure what you think should have the active class is getting the active class and not something else. This has been tested as working in the latest development version.

codybarr’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.x-dev

OK, great. I eventually found the correct selector: ".views-slideshow-pager-field-item.active" Not sure what "views_slideshow_active_pager_field_item" is for, seems redundant. Thanks!

dealancer’s picture

I confirm that pager is not updating at least for 7.x-3.0-alpha1.

I have following styles for the pager:


#block-views-frontpage-slideshow-block-1 .views_slideshow_pager_field_item {
  float: left;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #666;
  color: #666;
}

#block-views-frontpage-slideshow-block-1 .views_slideshow_active_pager_field_item {
  background-color: #9D2319;
  color: #9D2319;
}

The problem is in that first item has .views_slideshow_active_pager_field_item class always, and all other items have just .views_slideshow_pager_field_item class.

All classes for first item:

views-slideshow-pager-field-item views_slideshow_pager_field_item views_slideshow_active_pager_field_item views-row-odd

And here are class for second item:

views-slideshow-pager-field-item views_slideshow_pager_field_item views-row-even

dealancer’s picture

Status: Closed (works as designed) » Active

I confirm that pager is not updating for 7.x-3.0-dev.

codybarr’s picture

But it is working in the dev version. Read the solution in #7.

dealancer’s picture

Status: Active » Closed (fixed)
FileSize
2.68 KB

This selector isn't added to the pager item in alpha1, so I wrote a patch for it. I was too fast, I wish I read your comment before

Yeah, now I am closing an issue.

Kristen Pol’s picture

This is still an issue and has lots of duplicates. See http://drupal.org/node/1144512#comment-6962460

BrightBold’s picture

Solution in #7 is the winner here.