From 03a8a96a8b97ca047826ad1d6b78ebbf2a8fd808 Mon Sep 17 00:00:00 2001 From: Peter Schmiedt Date: Mon, 27 Jan 2014 15:25:07 +0100 Subject: [PATCH] Multiple galleries on one page fix. I was having trouble when I had 2 or more galleries on one page. When I tried to view the last image of the first gallery and then "loop over" to the first image, I got to the first image but from the second gallery. After reading the official documentation of colorbox, I found out that the most simple initialization of colorbox should be: "$(".group1").colorbox({rel: 'group1'}); As you can see the "rel" attribute is missing, so I added the missing attribute. Also as you can see there isn't an "a" before the ".group1" so I removed that. This fixed my problem. I don't know if that removal of the "a" has any impact on this fix, but I omitted it just to be sure. Peter Schmiedt NELASOFT Technologies, s.r.o. --- .../formatters/photoalbum.jsp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/com.alkacon.opencms.v8.photoalbum/resources/system/modules/com.alkacon.opencms.v8.photoalbum/formatters/photoalbum.jsp b/com.alkacon.opencms.v8.photoalbum/resources/system/modules/com.alkacon.opencms.v8.photoalbum/formatters/photoalbum.jsp index 0a0dfd2c..1579c991 100644 --- a/com.alkacon.opencms.v8.photoalbum/resources/system/modules/com.alkacon.opencms.v8.photoalbum/formatters/photoalbum.jsp +++ b/com.alkacon.opencms.v8.photoalbum/resources/system/modules/com.alkacon.opencms.v8.photoalbum/formatters/photoalbum.jsp @@ -98,6 +98,7 @@ - \ No newline at end of file +