Hi,
The code in use is shown below.
I would like to add this extra code also below at line 220 but when i do i get a syntax error.
Can you advise why.
Thanks
Code:$rgGallery.find(‘div.rg-image’).fadeOut(500, function() { //Fade-Out $rgGallery.find(‘div.rg-image’).empty( ).append(”) //Image change }).fadeIn(500); //Fade-InCode:var $loader = $rgGallery.find('div.rg-loading').show(); $items.removeClass('selected'); $item.addClass('selected'); var $thumb = $item.find('img'), largesrc = $thumb.data('large'), title = $thumb.data('description'); $('<img/>').load( function() { $rgGallery.find('div.rg-image').empty().append('<img src="' + largesrc + '"/>'); if( title ) $rgGallery.find('div.rg-caption').show().children('p').empty().text( title ); $loader.hide(); if( mode === 'carousel' ) { $esCarousel.elastislide( 'reload' ); $esCarousel.elastislide( 'setCurrent', current ); } anim = false; }).attr( 'src', largesrc ); }, addItems = function( $new ) { $esCarousel.find('ul').append($new); $items = $items.add( $($new) ); itemsCount = $items.length; $esCarousel.elastislide( 'add', $new ); }; return { init : init, addItems : addItems }; })(); Gallery.init();



Reply With Quote


Bookmarks