//////////////// AJAX Start $(document).on("click", 'a:not(.up a, .gallery a)', function(event) { event.preventDefault(); var href = $(this).attr("href"); $.ajax({ type: 'GET', url: href, data:'html', beforeSend: function(){ $(".loading").show(); }, success: function(data) { $(".loading").hide(); $('#target').html($(data).find('#target').html()); var matches = data.match(/<title>(.*?)<\/title>/); var pageTitle = matches[1]; document.title = pageTitle; var url = window.location.href; } }); //This is where we update the address bar with the 'url' parameter history.pushState({}, '', href); return false; }); //////////////// AJAX End
[[!Gallery? &plugin=`slimbox` &loop=`1` &thumbWidth=`200` &thumbHeight=`200` &thumbZoomCrop=`1` &overlayOpacity=`0.65` &imageWidth=`600` &imageHeight=`600` &slimboxRenderJsOnStartup=`0` &slimboxLoadJQuery=`0` &rowTpl=`galAlbumCoverRowTpl` &toPlaceholder=`gallery` ]]
This question has been answered by profilneurotiker. See the first response.
$("a[rel^='lightbox']").slimbox({ initialWidth: 300, initialHeight: 300}, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); });