SOURCES (DEVEL): dokuwiki-plugin-lightbox.patch - cleanup

glen glen at pld-linux.org
Thu Mar 12 21:22:09 CET 2009


Author: glen                         Date: Thu Mar 12 20:22:09 2009 GMT
Module: SOURCES                       Tag: DEVEL
---- Log message:
- cleanup

---- Files affected:
SOURCES:
   dokuwiki-plugin-lightbox.patch (1.4.4.1 -> 1.4.4.2) 

---- Diffs:

================================================================
Index: SOURCES/dokuwiki-plugin-lightbox.patch
diff -u SOURCES/dokuwiki-plugin-lightbox.patch:1.4.4.1 SOURCES/dokuwiki-plugin-lightbox.patch:1.4.4.2
--- SOURCES/dokuwiki-plugin-lightbox.patch:1.4.4.1	Thu Mar 12 21:20:43 2009
+++ SOURCES/dokuwiki-plugin-lightbox.patch	Thu Mar 12 21:22:02 2009
@@ -1,5 +1,5 @@
---- lightbox~/js/lightbox.js	2008-03-10 06:57:43.000000000 +0200
-+++ lightbox/js/lightbox.js	2009-03-12 22:18:36.369854061 +0200
+--- lightbox/js/lightbox.js	2009-03-12 22:18:36.369854061 +0200
++++ lightbox/js/lightbox.js	2009-03-12 22:15:26.021123357 +0200
 @@ -46,13 +46,13 @@
  //  Configurationl
  //
@@ -26,7 +26,7 @@
              if (target) {
                  event.stop();
                  this.start(target);
-@@ -213,18 +213,20 @@
+@@ -213,18 +213,12 @@
          this.imageArray = [];
          var imageNum = 0;       
  
@@ -34,23 +34,20 @@
 -            // if image is NOT part of a set, add single image to imageArray
 -            this.imageArray.push([imageLink.href, imageLink.title]);         
 -        } else {
-+        //if ((imageLink.rel == 'lightbox')){
-+        //     if image is NOT part of a set, add single image to imageArray
-+        //    this.imageArray.push([imageLink.href, imageLink.title]);         
-+        //} else {
-             // if image is part of a set..
-             this.imageArray = 
+-            // if image is part of a set..
+-            this.imageArray = 
 -                $$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
 -                collect(function(anchor){ return [anchor.href, anchor.title]; }).
-+                //$$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
-+                $$(imageLink.tagName + '[href][class="media"]').
-+                //collect(function(anchor){ return [anchor.href, anchor.title]; }).
-+                collect(function(anchor){ return [anchor.href, anchor.firstChild.getAttribute('title')]; }).
-                 uniq();
-             
-             while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
+-                uniq();
+-            
+-            while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
 -        }
-+        //}
++        this.imageArray = 
++            $$(imageLink.tagName + '[href][class="media"]').
++            collect(function(anchor){ return [anchor.href, anchor.firstChild.getAttribute('title')]; }).
++            uniq();
++        
++        while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
  
          // calculate top and left offset for the lightbox 
          var arrayPageScroll = document.viewport.getScrollOffsets();
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/dokuwiki-plugin-lightbox.patch?r1=1.4.4.1&r2=1.4.4.2&f=u



More information about the pld-cvs-commit mailing list