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' );
-
             filtered = albums.filter( '[data-jgallery-album-title="' + $album.attr( 'data-jgallery-album-title' ) + '"]' ).
+
             filtered = albums.filter( '[data-jgallery-album-title="' + $album.attr( 'data-jgallery-album-title' ) + '"]' )
             filtered.addClass( 'active' );
             filtered.addClass( 'active' );
             this.jGallery.iconChangeAlbum.setTitle( $album.attr( 'data-jgallery-album-title' ) );
             this.jGallery.iconChangeAlbum.setTitle( $album.attr( 'data-jgallery-album-title' ) );

Revision as of 06:29, 17 October 2014