Dunque...... ho trovato l'errore ma non so coe risolverlo.....
nel file con tutti i parametri .js c'è questo settaggio
codice:
// Adds an image to the gallery and optionally inserts/appends it to the DOM (thumbExists)
// @param listItem Either a jQuery object or a string of html of the list item that is to be added to the gallery.
// @param {Boolean} thumbExists Specifies whether the thumbnail already exists in the DOM or if it needs to be added.
// @param {Boolean} insert Specifies whether the the image is appended to the end or inserted into the gallery.
// @param {Integer} position The index within the gallery where the item shouold be added.
addImage: function(listItem, thumbExists, insert, position) {
var $li = ( typeof listItem === "string" ) ? $(listItem) : listItem;
var $aThumb = $li.find('a.thumb');
var slideUrl = $aThumb.attr('href');
var title = $aThumb.attr('title');
var $caption = $li.find('.caption').remove();
var hash = $aThumb.attr('name');
la stringa in grassetto mi da problemi..... e nn so come sostituirla.... il risultato dovrebbe essere che tutto ciò che sta all'interno del div con classe .caption vienne collocato all'interno del div <div id="caption" class="caption-container"></div>
se tolgo il remove() nn rimuove il codice dalla lista $li.find('.caption')
con hide() ovviamente nasconde tutto....
c'è nessuno che mi possa aiutare?!