pulitura di commenti superflui
This commit is contained in:
+2
-4
@@ -352,7 +352,7 @@ GUIHandler::generateHtmlHeaders(array("additionalHeaders"=>$additionalHeaders));
|
||||
if(sizeof($medias)>0){
|
||||
?>
|
||||
function loadImage(pos){
|
||||
// var position = items.indexOf(imageId);
|
||||
|
||||
var pswpElement = document.querySelectorAll('.pswp')[0];
|
||||
|
||||
//build items array
|
||||
@@ -360,11 +360,9 @@ if(sizeof($medias)>0){
|
||||
|
||||
//define options (if needed)
|
||||
var options = {
|
||||
// optionName: 'option value'
|
||||
// for example:
|
||||
index: pos // start at slide
|
||||
};
|
||||
// alert(items);
|
||||
|
||||
//Initializes and opens PhotoSwipe
|
||||
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
|
||||
gallery.init();
|
||||
|
||||
Reference in New Issue
Block a user