Template:Team:Waterloo/JS/jgallery
From 2014.igem.org
(Difference between revisions)
Line 571: | Line 571: | ||
albums = this.jGallery.iconChangeAlbum.getListOfAlbums(); | albums = this.jGallery.iconChangeAlbum.getListOfAlbums(); | ||
albums.find( '.item' ).removeClass( 'active' ); | albums.find( '.item' ).removeClass( 'active' ); | ||
- | albums.filter( '[data-jgallery-album-title="' + $album.attr( 'data-jgallery-album-title' ) + '"]' ).addClass( 'active' ); | + | filtered = albums.filter( '[data-jgallery-album-title="' + $album.attr( 'data-jgallery-album-title' ) + '"]' ). |
+ | filtered.addClass( 'active' ); | ||
this.jGallery.iconChangeAlbum.setTitle( $album.attr( 'data-jgallery-album-title' ) ); | this.jGallery.iconChangeAlbum.setTitle( $album.attr( 'data-jgallery-album-title' ) ); | ||
this.refreshNavigation(); | this.refreshNavigation(); |
Revision as of 06:29, 17 October 2014