From f9db040050861caff9beb1f4de99335ba078e2c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 12 Mar 2009 20:38:34 +0000 Subject: [PATCH] - on DEVEL branch only Changed files: dokuwiki-plugin-lightbox-dw-jscompress.patch -> 1.2 dokuwiki-plugin-lightbox-konqueror.patch -> 1.3 dokuwiki-plugin-lightbox.patch -> 1.5 --- dokuwiki-plugin-lightbox-dw-jscompress.patch | 11 --- dokuwiki-plugin-lightbox-konqueror.patch | 11 --- dokuwiki-plugin-lightbox.patch | 80 -------------------- 3 files changed, 102 deletions(-) delete mode 100644 dokuwiki-plugin-lightbox-dw-jscompress.patch delete mode 100644 dokuwiki-plugin-lightbox-konqueror.patch delete mode 100644 dokuwiki-plugin-lightbox.patch diff --git a/dokuwiki-plugin-lightbox-dw-jscompress.patch b/dokuwiki-plugin-lightbox-dw-jscompress.patch deleted file mode 100644 index 426cc30..0000000 --- a/dokuwiki-plugin-lightbox-dw-jscompress.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- lightbox/js/prototype.js~ 2008-03-10 06:57:43.000000000 +0200 -+++ lightbox/js/prototype.js 2009-03-12 03:52:02.059829741 +0200 -@@ -2969,7 +2969,7 @@ - pseudo: - /^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/, - attrPresence: /^\[([\w]+)\]/, -- attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ -+ attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*(([\x27"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ - }, - - // for Selector.match and Element#match diff --git a/dokuwiki-plugin-lightbox-konqueror.patch b/dokuwiki-plugin-lightbox-konqueror.patch deleted file mode 100644 index f19525d..0000000 --- a/dokuwiki-plugin-lightbox-konqueror.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- lightbox/js/prototype.js~ 2009-03-12 03:00:14.000000000 +0200 -+++ lightbox/js/prototype.js 2009-03-12 03:00:15.750346833 +0200 -@@ -12,7 +12,7 @@ - Browser: { - IE: !!(window.attachEvent && !window.opera), - Opera: !!window.opera, -- WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1, -+ WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1 || navigator.userAgent.indexOf('KHTML') > -1, - Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1, - MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) - }, diff --git a/dokuwiki-plugin-lightbox.patch b/dokuwiki-plugin-lightbox.patch deleted file mode 100644 index 6929b2c..0000000 --- a/dokuwiki-plugin-lightbox.patch +++ /dev/null @@ -1,80 +0,0 @@ ---- ./js/lightbox.js 2009-03-12 01:44:39.267256244 +0200 -+++ ./js/lightbox.js 2008-08-08 21:38:32.000000000 +0300 -@@ -5581,13 +5581,13 @@ - // Configurationl - // - LightboxOptions = Object.extend({ -- fileLoadingImage: 'images/loading.gif', -- fileBottomNavCloseImage: 'images/closelabel.gif', -+ fileLoadingImage: 'lib/plugins/lightbox/images/loading.gif', -+ fileBottomNavCloseImage: 'lib/plugins/lightbox/images/closelabel.gif', - - overlayOpacity: 0.8, // controls transparency of shadow overlay - - animate: true, // toggles resizing animations -- resizeSpeed: 7, // controls the speed of the image resizing animations (1=slowest and 10=fastest) -+ resizeSpeed: 10, // controls the speed of the image resizing animations (1=slowest and 10=fastest) - - borderSize: 10, //if you adjust the padding in the CSS, you will need to update this variable - -@@ -5723,7 +5723,7 @@ - this.updateImageList = Prototype.emptyFunction; - - document.observe('click', (function(event){ -- var target = event.findElement('a[rel^=lightbox]') || event.findElement('area[rel^=lightbox]'); -+ var target = event.findElement('a[class^=media]:not([class~=mediafile])') || event.findElement('area[class^=media]:not([class~=mediafile])'); - if (target) { - event.stop(); - this.start(target); -@@ -5748,18 +5748,20 @@ - this.imageArray = []; - var imageNum = 0; - -- 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 ((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 = -- $$(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++; } -- } -+ //} - - // calculate top and left offset for the lightbox - var arrayPageScroll = document.viewport.getScrollOffsets(); ---- ./css/lightbox.css 2008-03-10 06:57:10.000000000 +0200 -+++ ./css/lightbox.css 2008-08-07 23:47:50.000000000 +0300 -@@ -10,11 +10,11 @@ - #imageContainer>#hoverNav{ left: 0;} - #hoverNav a{ outline: none;} - --#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; } -+#prevLink, #nextLink{ width: 49%; height: 100%; background: transparent url(images/blank.gif) no-repeat; /* Trick IE into showing hover */ display: block; } - #prevLink { left: 0; float: left;} - #nextLink { right: 0; float: right;} --#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; } --#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; } -+#prevLink:hover, #prevLink:visited:hover { background: url(images/prevlabel.gif) left 15% no-repeat; } -+#nextLink:hover, #nextLink:visited:hover { background: url(images/nextlabel.gif) right 15% no-repeat; } - - #imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; } - ---- /dev/null 2008-11-04 20:33:38.146691408 +0200 -+++ ./blank.gif.uue 2009-03-12 02:25:39.693919760 +0200 -@@ -0,0 +1,4 @@ -+begin 640 images/blank.gif -+K1TE&.#EA`0`!`(#_`,#`P````"'Y!`$`````+``````!``$```("1`$`.P`` -+` -+end -- 2.43.0