SOURCES (DEVEL): dokuwiki-plugin-lightbox.patch - use directlink if availab...
glen
glen at pld-linux.org
Thu Mar 12 21:34:39 CET 2009
Author: glen Date: Thu Mar 12 20:34:38 2009 GMT
Module: SOURCES Tag: DEVEL
---- Log message:
- use directlink if available (needs patched dokuwiki)
---- Files affected:
SOURCES:
dokuwiki-plugin-lightbox.patch (1.4.4.2 -> 1.4.4.3)
---- Diffs:
================================================================
Index: SOURCES/dokuwiki-plugin-lightbox.patch
diff -u SOURCES/dokuwiki-plugin-lightbox.patch:1.4.4.2 SOURCES/dokuwiki-plugin-lightbox.patch:1.4.4.3
--- SOURCES/dokuwiki-plugin-lightbox.patch:1.4.4.2 Thu Mar 12 21:22:02 2009
+++ SOURCES/dokuwiki-plugin-lightbox.patch Thu Mar 12 21:34:33 2009
@@ -1,5 +1,5 @@
---- lightbox/js/lightbox.js 2009-03-12 22:18:36.369854061 +0200
-+++ lightbox/js/lightbox.js 2009-03-12 22:15:26.021123357 +0200
+--- lightbox/js/lightbox.js 2009-03-12 22:15:26.021123357 +0200
++++ lightbox/js/lightbox.js 2009-03-12 22:32:42.575029579 +0200
@@ -46,13 +46,13 @@
// Configurationl
//
@@ -26,7 +26,7 @@
if (target) {
event.stop();
this.start(target);
-@@ -213,18 +213,12 @@
+@@ -213,18 +213,15 @@
this.imageArray = [];
var imageNum = 0;
@@ -42,12 +42,15 @@
-
- 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++; }
++ this.imageArray =
++ $$(imageLink.tagName + '[href][class="media"]').
++ collect(function(anchor){
++ var url = anchor.directlink ? anchor.directlink : anchor.href;
++ return [url, anchor.firstChild.getAttribute('title')]; }).
++ uniq();
++
++ var url = imageLink.directlink ? imageLink.directlink : imageLink.href;
++ while (this.imageArray[imageNum][0] != url) { 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.2&r2=1.4.4.3&f=u
More information about the pld-cvs-commit
mailing list