]> git.pld-linux.org Git - packages/dokuwiki-plugin-lightbox.git/blob - dokuwiki-plugin-lightbox.patch
- some release engineering
[packages/dokuwiki-plugin-lightbox.git] / dokuwiki-plugin-lightbox.patch
1 --- ./js/lightbox.js    2009-03-12 01:44:39.267256244 +0200
2 +++ ./js/lightbox.js    2008-08-08 21:38:32.000000000 +0300
3 @@ -5581,13 +5581,13 @@
4  //  Configurationl
5  //
6  LightboxOptions = Object.extend({
7 -    fileLoadingImage:        'images/loading.gif',     
8 -    fileBottomNavCloseImage: 'images/closelabel.gif',
9 +    fileLoadingImage:        'lib/plugins/lightbox/images/loading.gif',     
10 +    fileBottomNavCloseImage: 'lib/plugins/lightbox/images/closelabel.gif',
11  
12      overlayOpacity: 0.8,   // controls transparency of shadow overlay
13  
14      animate: true,         // toggles resizing animations
15 -    resizeSpeed: 7,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)
16 +    resizeSpeed: 10,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)
17  
18      borderSize: 10,         //if you adjust the padding in the CSS, you will need to update this variable
19  
20 @@ -5723,7 +5723,7 @@
21          this.updateImageList = Prototype.emptyFunction;
22  
23          document.observe('click', (function(event){
24 -            var target = event.findElement('a[rel^=lightbox]') || event.findElement('area[rel^=lightbox]');
25 +            var target = event.findElement('a[class^=media]:not([class~=mediafile])') || event.findElement('area[class^=media]:not([class~=mediafile])');
26              if (target) {
27                  event.stop();
28                  this.start(target);
29 @@ -5748,18 +5748,20 @@
30          this.imageArray = [];
31          var imageNum = 0;       
32  
33 -        if ((imageLink.rel == 'lightbox')){
34 -            // if image is NOT part of a set, add single image to imageArray
35 -            this.imageArray.push([imageLink.href, imageLink.title]);         
36 -        } else {
37 +        //if ((imageLink.rel == 'lightbox')){
38 +        //     if image is NOT part of a set, add single image to imageArray
39 +        //    this.imageArray.push([imageLink.href, imageLink.title]);         
40 +        //} else {
41              // if image is part of a set..
42              this.imageArray = 
43 -                $$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
44 -                collect(function(anchor){ return [anchor.href, anchor.title]; }).
45 +                //$$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
46 +                $$(imageLink.tagName + '[href][class="media"]').
47 +                //collect(function(anchor){ return [anchor.href, anchor.title]; }).
48 +                collect(function(anchor){ return [anchor.href, anchor.firstChild.getAttribute('title')]; }).
49                  uniq();
50              
51              while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
52 -        }
53 +        //}
54  
55          // calculate top and left offset for the lightbox 
56          var arrayPageScroll = document.viewport.getScrollOffsets();
57 --- ./css/lightbox.css  2008-03-10 06:57:10.000000000 +0200
58 +++ ./css/lightbox.css  2008-08-07 23:47:50.000000000 +0300
59 @@ -10,11 +10,11 @@
60  #imageContainer>#hoverNav{ left: 0;}
61  #hoverNav a{ outline: none;}
62  
63 -#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
64 +#prevLink, #nextLink{ width: 49%; height: 100%; background: transparent url(images/blank.gif) no-repeat; /* Trick IE into showing hover */ display: block; }
65  #prevLink { left: 0; float: left;}
66  #nextLink { right: 0; float: right;}
67 -#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
68 -#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
69 +#prevLink:hover, #prevLink:visited:hover { background: url(images/prevlabel.gif) left 15% no-repeat; }
70 +#nextLink:hover, #nextLink:visited:hover { background: url(images/nextlabel.gif) right 15% no-repeat; }
71  
72  #imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100%        ; }
73  
74 --- /dev/null   2008-11-04 20:33:38.146691408 +0200
75 +++ ./blank.gif.uue     2009-03-12 02:25:39.693919760 +0200
76 @@ -0,0 +1,4 @@
77 +begin 640 images/blank.gif
78 +K1TE&.#EA`0`!`(#_`,#`P````"'Y!`$`````+``````!``$```("1`$`.P``
79 +`
80 +end
This page took 0.065684 seconds and 3 git commands to generate.