Skip to content

Commit

Permalink
more distinct var for display
Browse files Browse the repository at this point in the history
  • Loading branch information
uncovery committed Mar 24, 2016
1 parent 44e20af commit 27a8883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unc_display.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function unc_g_photoswipe_' . $js_code . '(index) {
var options = {
index: index
};
var uncg_items = [';
var uncg_items_' . $js_code . ' = [';
foreach ($files as $F) {
$out .= "
{
Expand All @@ -367,7 +367,7 @@ function unc_g_photoswipe_' . $js_code . '(index) {
}
$out .= "];
var pswpElement = document.querySelectorAll('.pswp')[0];
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, uncg_items, options);
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, uncg_items_' . $js_code . ', options);
gallery.init();
}
</script>";
Expand Down

0 comments on commit 27a8883

Please sign in to comment.