cbeyls / slimbox

The ultimate lightweight Lightbox clone
http://www.digitalia.be/software/slimbox2
50 stars 24 forks source link

Rescan? #44

Closed cheesegrits closed 7 years ago

cheesegrits commented 9 years ago

There doesn't seem to be a way to rescan any more? The original versions has Slimbox.scanPage, which I could trigger when (say) updating the DOM through AJAX.

cbeyls commented 7 years ago

You can find the default scan code in autoload.js:

$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
    return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
});

The idea is that you can change this code to suit your needs.