[serendipity_event_lightbox] Update bundled lightbox scripts
- Update colorbox to 1.6.4 - Update lightbox2 to 2.9.0 - Update prettyPhoto to 3.1.6 (the uncompressed version was still at v3.1.4)
This commit is contained in:
parent
9eafd45f98
commit
2c288d2292
|
@ -1,3 +1,10 @@
|
|||
2.5.1:
|
||||
* colorbox update v.1.6.4
|
||||
* lightbox2-jquery update v.2.9.0
|
||||
* prettyPhoto update v.3.1.6 (the uncompressed version was still at
|
||||
v.3.1.4)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
2.5.0:
|
||||
* Magnific Popup update v.1.1.0 - 2016-02-20
|
||||
|
||||
|
|
|
@ -3,6 +3,10 @@ A customizable lightbox plugin for jQuery. See the [project page](http://jacklm
|
|||
|
||||
## Changelog:
|
||||
|
||||
##### Version 1.6.4 - 2016/05/10
|
||||
|
||||
* Fixed bug where using the inline property would duplicate target elements, if the selector matched multiple elements.
|
||||
|
||||
##### Version 1.6.3 - 2015/07/27
|
||||
|
||||
* Fixed regression that caused error in IE8 when the calculated initial size was negative. Fixes #741
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);}
|
||||
#cboxWrapper {max-width:none;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
Colorbox 1.6.3
|
||||
Colorbox 1.6.4
|
||||
license: MIT
|
||||
http://www.jacklmoore.com/colorbox
|
||||
*/
|
||||
|
@ -484,7 +484,7 @@
|
|||
$current = $tag(div, "Current"),
|
||||
$prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
|
||||
$next = $('<button type="button"/>').attr({id:prefix+'Next'}),
|
||||
$slideshow = $tag('button', "Slideshow"),
|
||||
$slideshow = $('<button type="button"/>').attr({id:prefix+'Slideshow'}),
|
||||
$loadingOverlay
|
||||
);
|
||||
|
||||
|
@ -950,7 +950,7 @@
|
|||
}, 100);
|
||||
|
||||
if (settings.get('inline')) {
|
||||
var $target = $(href);
|
||||
var $target = $(href).eq(0);
|
||||
// Inserts an empty placeholder where inline content is being pulled from.
|
||||
// An event is bound to put inline content back when Colorbox closes or loads new content.
|
||||
$inline = $('<div>').hide().insertBefore($target);
|
||||
|
|
|
@ -13,32 +13,69 @@ by [Lokesh Dhakar](http://www.lokeshdhakar.com)
|
|||
|
||||
### Actively being worked on
|
||||
|
||||
- **Maintenance.** Get open Issues and PRs number down.
|
||||
- **Maintenance.** Geting open Issues and PRs number down. Not working on new features for v2.x.
|
||||
|
||||
### Not on the roadmap
|
||||
### Features *NOT* on the roadmap
|
||||
|
||||
- **HTML or video content.** The goal of the script from the start has been to provide a better image viewing experience and I am planning on staying focused on that vision. Don't worry though there are plenty of alternative scripts a google away for those who need HTML or video content support.
|
||||
The goal of this script from it's beginnings till today is to to provide a better *image viewing experience*.
|
||||
|
||||
- **HTML or video content.** If you need to show html or video content, I recommend googling for an alternative script as there are many options.
|
||||
- **Social sharing buttons.**
|
||||
|
||||
### v3.0 - In Brainstorming Phase
|
||||
|
||||
**Interactions**
|
||||
- Add touch gesture support.
|
||||
- Rewrite animations for performance and flexibility.
|
||||
- Exploring using tilt gesture on mobile devices with extra-wide images.
|
||||
- If user attempts to go forward when at end of image set, animation (shake?) indicating the end or option to close Lightbox.
|
||||
- Make sure right-click/long pressing works to access the image's context menu.
|
||||
|
||||
**Layout**
|
||||
- Allow vertical centering.
|
||||
- Update sizing on window resize.
|
||||
- Should the dev be able to choose the position of the caption, close button, and nav controls?
|
||||
- Optimize layout for mobile.
|
||||
- Optimize layout for screens of varying densities.
|
||||
- Should the close button still live in the bottom right corner?
|
||||
|
||||
**Animations**
|
||||
- Evaluate start, end, and transition animations.
|
||||
- Rewrite animations for performance and flexibility.
|
||||
|
||||
**Assets**
|
||||
- Use inline SVG for UI elements.
|
||||
|
||||
**Caching**
|
||||
- Review if and how images should be preloaded
|
||||
|
||||
**Accessibility**
|
||||
- Should opening lightbox update the url? and should this url be parsed on page load to show Lightbox automatically?
|
||||
- Review alt attributes.
|
||||
- Review ARIA roles.
|
||||
- Review constrast ratios.
|
||||
- Review keyboard input and tabbing.
|
||||
- Review click/touch target size.
|
||||
- Test with screen reader.
|
||||
|
||||
**API**
|
||||
- Do not initialize automatically and allow multiple instances.
|
||||
- Add event handlers.
|
||||
- Allow the setting of options from HTML.
|
||||
- Allow setting options on the fly.
|
||||
- Allow the setting of options from HTML?
|
||||
- Allow instantiation with jQuery plugin syntax.
|
||||
- If one of the two options, maxWidth or maxHeight, is set, maintain aspect ratio.
|
||||
- Evaluate start, end, and transition animations.
|
||||
- Evaluate preloading and caching.
|
||||
- Evaluate droppping jQuery requirement.
|
||||
- If user attempts to go forward when at end of image set, animation (shake?) indicating the end or option to close Lightbox.
|
||||
|
||||
- Allow placement inside of a specified element? Orig feature requester was dealing with iframe.
|
||||
|
||||
## Changelog
|
||||
|
||||
### v2.9.0 - 2016-10-30
|
||||
|
||||
- [Fix] Allow loading of lightbox.js anywhere on page. Prev requirement was at the end of the body tag. [Commit](https://github.com/lokesh/lightbox2/commit/7047214f77cfc8f892e8513426b57d45bf29e9cd)
|
||||
- [Add] Add imageFadeDuration option. [Commit](https://github.com/lokesh/lightbox2/commit/6d5f99a65f189a5d2bd7bbfac4682fe36e62871e)
|
||||
- [Change] Right-clicking image now shows context menu for image. [Commit](https://github.com/lokesh/lightbox2/commit/363c3cb8af8fae1b6f95d6679df976022290f878)
|
||||
- [Change] Allow controlling of image border with a simpler css border vs a parent container padding _hack_. [Commit](https://github.com/lokesh/lightbox2/commit/214361297f1dd5f0c19c1d80ff37c398cdda55cb)
|
||||
|
||||
### v2.8.2 - 2015-12-13
|
||||
|
||||
- [Add] npm support. ```npm install --save lightbox2```
|
||||
|
|
|
@ -33,7 +33,11 @@ body.lb-disable-scrolling {
|
|||
display: block;
|
||||
height: auto;
|
||||
max-width: inherit;
|
||||
max-height: none;
|
||||
border-radius: 3px;
|
||||
|
||||
/* Image border */
|
||||
border: 4px solid white;
|
||||
}
|
||||
|
||||
.lightbox a img {
|
||||
|
@ -42,12 +46,15 @@ body.lb-disable-scrolling {
|
|||
|
||||
.lb-outerContainer {
|
||||
position: relative;
|
||||
background-color: white;
|
||||
*zoom: 1;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
margin: 0 auto;
|
||||
border-radius: 4px;
|
||||
|
||||
/* Background color behind image.
|
||||
This is visible during transitions. */
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.lb-outerContainer:after {
|
||||
|
@ -56,10 +63,6 @@ body.lb-disable-scrolling {
|
|||
clear: both;
|
||||
}
|
||||
|
||||
.lb-container {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.lb-loader {
|
||||
position: absolute;
|
||||
top: 43%;
|
||||
|
@ -175,6 +178,10 @@ body.lb-disable-scrolling {
|
|||
line-height: 1em;
|
||||
}
|
||||
|
||||
.lb-data .lb-caption a {
|
||||
color: #4ae;
|
||||
}
|
||||
|
||||
.lb-data .lb-number {
|
||||
display: block;
|
||||
clear: left;
|
||||
|
|
|
@ -9210,7 +9210,7 @@ return jQuery;
|
|||
}));
|
||||
|
||||
/*!
|
||||
* Lightbox v2.8.2
|
||||
* Lightbox v2.9.0
|
||||
* by Lokesh Dhakar
|
||||
*
|
||||
* More info:
|
||||
|
@ -9252,15 +9252,25 @@ return jQuery;
|
|||
Lightbox.defaults = {
|
||||
albumLabel: 'Image %1 of %2',
|
||||
alwaysShowNavOnTouchDevices: false,
|
||||
fadeDuration: 500,
|
||||
fadeDuration: 600,
|
||||
fitImagesInViewport: true,
|
||||
imageFadeDuration: 600,
|
||||
// maxWidth: 800,
|
||||
// maxHeight: 600,
|
||||
positionFromTop: 50,
|
||||
resizeDuration: 700,
|
||||
showImageNumberLabel: true,
|
||||
wrapAround: false,
|
||||
disableScrolling: false
|
||||
disableScrolling: false,
|
||||
/*
|
||||
Sanitize Title
|
||||
If the caption data is trusted, for example you are hardcoding it in, then leave this to false.
|
||||
This will free you to add html tags, such as links, in the caption.
|
||||
|
||||
If the caption data is user submitted or from some other untrusted source, then set this to true
|
||||
to prevent xss and other injection attacks.
|
||||
*/
|
||||
sanitizeTitle: false
|
||||
};
|
||||
|
||||
Lightbox.prototype.option = function(options) {
|
||||
|
@ -9272,8 +9282,12 @@ return jQuery;
|
|||
};
|
||||
|
||||
Lightbox.prototype.init = function() {
|
||||
this.enable();
|
||||
this.build();
|
||||
var self = this;
|
||||
// Both enable and build methods require the body tag to be in the DOM.
|
||||
$(document).ready(function() {
|
||||
self.enable();
|
||||
self.build();
|
||||
});
|
||||
};
|
||||
|
||||
// Loop through anchors and areamaps looking for either data-lightbox attributes or rel attributes
|
||||
|
@ -9297,12 +9311,23 @@ return jQuery;
|
|||
this.$overlay = $('#lightboxOverlay');
|
||||
this.$outerContainer = this.$lightbox.find('.lb-outerContainer');
|
||||
this.$container = this.$lightbox.find('.lb-container');
|
||||
this.$image = this.$lightbox.find('.lb-image');
|
||||
this.$nav = this.$lightbox.find('.lb-nav');
|
||||
|
||||
// Store css values for future lookup
|
||||
this.containerTopPadding = parseInt(this.$container.css('padding-top'), 10);
|
||||
this.containerRightPadding = parseInt(this.$container.css('padding-right'), 10);
|
||||
this.containerBottomPadding = parseInt(this.$container.css('padding-bottom'), 10);
|
||||
this.containerLeftPadding = parseInt(this.$container.css('padding-left'), 10);
|
||||
this.containerPadding = {
|
||||
top: parseInt(this.$container.css('padding-top'), 10),
|
||||
right: parseInt(this.$container.css('padding-right'), 10),
|
||||
bottom: parseInt(this.$container.css('padding-bottom'), 10),
|
||||
left: parseInt(this.$container.css('padding-left'), 10)
|
||||
};
|
||||
|
||||
this.imageBorderWidth = {
|
||||
top: parseInt(this.$image.css('border-top-width'), 10),
|
||||
right: parseInt(this.$image.css('border-right-width'), 10),
|
||||
bottom: parseInt(this.$image.css('border-bottom-width'), 10),
|
||||
left: parseInt(this.$image.css('border-left-width'), 10)
|
||||
};
|
||||
|
||||
// Attach event handlers to the newly minted DOM elements
|
||||
this.$overlay.hide().on('click', function() {
|
||||
|
@ -9342,6 +9367,32 @@ return jQuery;
|
|||
return false;
|
||||
});
|
||||
|
||||
/*
|
||||
Show context menu for image on right-click
|
||||
|
||||
There is a div containing the navigation that spans the entire image and lives above of it. If
|
||||
you right-click, you are right clicking this div and not the image. This prevents users from
|
||||
saving the image or using other context menu actions with the image.
|
||||
|
||||
To fix this, when we detect the right mouse button is pressed down, but not yet clicked, we
|
||||
set pointer-events to none on the nav div. This is so that the upcoming right-click event on
|
||||
the next mouseup will bubble down to the image. Once the right-click/contextmenu event occurs
|
||||
we set the pointer events back to auto for the nav div so it can capture hover and left-click
|
||||
events as usual.
|
||||
*/
|
||||
this.$nav.on('mousedown', function(event) {
|
||||
if (event.which === 3) {
|
||||
self.$nav.css('pointer-events', 'none');
|
||||
|
||||
self.$lightbox.one('contextmenu', function() {
|
||||
setTimeout(function() {
|
||||
this.$nav.css('pointer-events', 'auto');
|
||||
}.bind(self), 0);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
this.$lightbox.find('.lb-loader, .lb-close').on('click', function() {
|
||||
self.end();
|
||||
return false;
|
||||
|
@ -9453,8 +9504,8 @@ return jQuery;
|
|||
|
||||
windowWidth = $(window).width();
|
||||
windowHeight = $(window).height();
|
||||
maxImageWidth = windowWidth - self.containerLeftPadding - self.containerRightPadding - 20;
|
||||
maxImageHeight = windowHeight - self.containerTopPadding - self.containerBottomPadding - 120;
|
||||
maxImageWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.imageBorderWidth.left - self.imageBorderWidth.right - 20;
|
||||
maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - 120;
|
||||
|
||||
// Check if image size is larger then maxWidth|maxHeight in settings
|
||||
if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
|
||||
|
@ -9499,8 +9550,8 @@ return jQuery;
|
|||
|
||||
var oldWidth = this.$outerContainer.outerWidth();
|
||||
var oldHeight = this.$outerContainer.outerHeight();
|
||||
var newWidth = imageWidth + this.containerLeftPadding + this.containerRightPadding;
|
||||
var newHeight = imageHeight + this.containerTopPadding + this.containerBottomPadding;
|
||||
var newWidth = imageWidth + this.containerPadding.left + this.containerPadding.right + this.imageBorderWidth.left + this.imageBorderWidth.right;
|
||||
var newHeight = imageHeight + this.containerPadding.top + this.containerPadding.bottom + this.imageBorderWidth.top + this.imageBorderWidth.bottom;
|
||||
|
||||
function postResize() {
|
||||
self.$lightbox.find('.lb-dataContainer').width(newWidth);
|
||||
|
@ -9524,7 +9575,7 @@ return jQuery;
|
|||
// Display the image and its details and begin preload neighboring images.
|
||||
Lightbox.prototype.showImage = function() {
|
||||
this.$lightbox.find('.lb-loader').stop(true).hide();
|
||||
this.$lightbox.find('.lb-image').fadeIn('slow');
|
||||
this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration);
|
||||
|
||||
this.updateNav();
|
||||
this.updateDetails();
|
||||
|
@ -9576,9 +9627,13 @@ return jQuery;
|
|||
// Thanks Nate Wright for the fix. @https://github.com/NateWr
|
||||
if (typeof this.album[this.currentImageIndex].title !== 'undefined' &&
|
||||
this.album[this.currentImageIndex].title !== '') {
|
||||
this.$lightbox.find('.lb-caption')
|
||||
.html(this.album[this.currentImageIndex].title)
|
||||
.fadeIn('fast')
|
||||
var $caption = this.$lightbox.find('.lb-caption');
|
||||
if (this.options.sanitizeTitle) {
|
||||
$caption.text(this.album[this.currentImageIndex].title);
|
||||
} else {
|
||||
$caption.html(this.album[this.currentImageIndex].title);
|
||||
}
|
||||
$caption.fadeIn('fast')
|
||||
.find('a').on('click', function(event) {
|
||||
if ($(this).attr('target') !== undefined) {
|
||||
window.open($(this).attr('href'), $(this).attr('target'));
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Lightbox v2.8.2
|
||||
* Lightbox v2.9.0
|
||||
* by Lokesh Dhakar
|
||||
*
|
||||
* More info:
|
||||
|
@ -41,15 +41,25 @@
|
|||
Lightbox.defaults = {
|
||||
albumLabel: 'Image %1 of %2',
|
||||
alwaysShowNavOnTouchDevices: false,
|
||||
fadeDuration: 500,
|
||||
fadeDuration: 600,
|
||||
fitImagesInViewport: true,
|
||||
imageFadeDuration: 600,
|
||||
// maxWidth: 800,
|
||||
// maxHeight: 600,
|
||||
positionFromTop: 50,
|
||||
resizeDuration: 700,
|
||||
showImageNumberLabel: true,
|
||||
wrapAround: false,
|
||||
disableScrolling: false
|
||||
disableScrolling: false,
|
||||
/*
|
||||
Sanitize Title
|
||||
If the caption data is trusted, for example you are hardcoding it in, then leave this to false.
|
||||
This will free you to add html tags, such as links, in the caption.
|
||||
|
||||
If the caption data is user submitted or from some other untrusted source, then set this to true
|
||||
to prevent xss and other injection attacks.
|
||||
*/
|
||||
sanitizeTitle: false
|
||||
};
|
||||
|
||||
Lightbox.prototype.option = function(options) {
|
||||
|
@ -61,8 +71,12 @@
|
|||
};
|
||||
|
||||
Lightbox.prototype.init = function() {
|
||||
this.enable();
|
||||
this.build();
|
||||
var self = this;
|
||||
// Both enable and build methods require the body tag to be in the DOM.
|
||||
$(document).ready(function() {
|
||||
self.enable();
|
||||
self.build();
|
||||
});
|
||||
};
|
||||
|
||||
// Loop through anchors and areamaps looking for either data-lightbox attributes or rel attributes
|
||||
|
@ -86,12 +100,23 @@
|
|||
this.$overlay = $('#lightboxOverlay');
|
||||
this.$outerContainer = this.$lightbox.find('.lb-outerContainer');
|
||||
this.$container = this.$lightbox.find('.lb-container');
|
||||
this.$image = this.$lightbox.find('.lb-image');
|
||||
this.$nav = this.$lightbox.find('.lb-nav');
|
||||
|
||||
// Store css values for future lookup
|
||||
this.containerTopPadding = parseInt(this.$container.css('padding-top'), 10);
|
||||
this.containerRightPadding = parseInt(this.$container.css('padding-right'), 10);
|
||||
this.containerBottomPadding = parseInt(this.$container.css('padding-bottom'), 10);
|
||||
this.containerLeftPadding = parseInt(this.$container.css('padding-left'), 10);
|
||||
this.containerPadding = {
|
||||
top: parseInt(this.$container.css('padding-top'), 10),
|
||||
right: parseInt(this.$container.css('padding-right'), 10),
|
||||
bottom: parseInt(this.$container.css('padding-bottom'), 10),
|
||||
left: parseInt(this.$container.css('padding-left'), 10)
|
||||
};
|
||||
|
||||
this.imageBorderWidth = {
|
||||
top: parseInt(this.$image.css('border-top-width'), 10),
|
||||
right: parseInt(this.$image.css('border-right-width'), 10),
|
||||
bottom: parseInt(this.$image.css('border-bottom-width'), 10),
|
||||
left: parseInt(this.$image.css('border-left-width'), 10)
|
||||
};
|
||||
|
||||
// Attach event handlers to the newly minted DOM elements
|
||||
this.$overlay.hide().on('click', function() {
|
||||
|
@ -131,6 +156,32 @@
|
|||
return false;
|
||||
});
|
||||
|
||||
/*
|
||||
Show context menu for image on right-click
|
||||
|
||||
There is a div containing the navigation that spans the entire image and lives above of it. If
|
||||
you right-click, you are right clicking this div and not the image. This prevents users from
|
||||
saving the image or using other context menu actions with the image.
|
||||
|
||||
To fix this, when we detect the right mouse button is pressed down, but not yet clicked, we
|
||||
set pointer-events to none on the nav div. This is so that the upcoming right-click event on
|
||||
the next mouseup will bubble down to the image. Once the right-click/contextmenu event occurs
|
||||
we set the pointer events back to auto for the nav div so it can capture hover and left-click
|
||||
events as usual.
|
||||
*/
|
||||
this.$nav.on('mousedown', function(event) {
|
||||
if (event.which === 3) {
|
||||
self.$nav.css('pointer-events', 'none');
|
||||
|
||||
self.$lightbox.one('contextmenu', function() {
|
||||
setTimeout(function() {
|
||||
this.$nav.css('pointer-events', 'auto');
|
||||
}.bind(self), 0);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
this.$lightbox.find('.lb-loader, .lb-close').on('click', function() {
|
||||
self.end();
|
||||
return false;
|
||||
|
@ -242,8 +293,8 @@
|
|||
|
||||
windowWidth = $(window).width();
|
||||
windowHeight = $(window).height();
|
||||
maxImageWidth = windowWidth - self.containerLeftPadding - self.containerRightPadding - 20;
|
||||
maxImageHeight = windowHeight - self.containerTopPadding - self.containerBottomPadding - 120;
|
||||
maxImageWidth = windowWidth - self.containerPadding.left - self.containerPadding.right - self.imageBorderWidth.left - self.imageBorderWidth.right - 20;
|
||||
maxImageHeight = windowHeight - self.containerPadding.top - self.containerPadding.bottom - self.imageBorderWidth.top - self.imageBorderWidth.bottom - 120;
|
||||
|
||||
// Check if image size is larger then maxWidth|maxHeight in settings
|
||||
if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
|
||||
|
@ -288,8 +339,8 @@
|
|||
|
||||
var oldWidth = this.$outerContainer.outerWidth();
|
||||
var oldHeight = this.$outerContainer.outerHeight();
|
||||
var newWidth = imageWidth + this.containerLeftPadding + this.containerRightPadding;
|
||||
var newHeight = imageHeight + this.containerTopPadding + this.containerBottomPadding;
|
||||
var newWidth = imageWidth + this.containerPadding.left + this.containerPadding.right + this.imageBorderWidth.left + this.imageBorderWidth.right;
|
||||
var newHeight = imageHeight + this.containerPadding.top + this.containerPadding.bottom + this.imageBorderWidth.top + this.imageBorderWidth.bottom;
|
||||
|
||||
function postResize() {
|
||||
self.$lightbox.find('.lb-dataContainer').width(newWidth);
|
||||
|
@ -313,7 +364,7 @@
|
|||
// Display the image and its details and begin preload neighboring images.
|
||||
Lightbox.prototype.showImage = function() {
|
||||
this.$lightbox.find('.lb-loader').stop(true).hide();
|
||||
this.$lightbox.find('.lb-image').fadeIn('slow');
|
||||
this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration);
|
||||
|
||||
this.updateNav();
|
||||
this.updateDetails();
|
||||
|
@ -365,9 +416,13 @@
|
|||
// Thanks Nate Wright for the fix. @https://github.com/NateWr
|
||||
if (typeof this.album[this.currentImageIndex].title !== 'undefined' &&
|
||||
this.album[this.currentImageIndex].title !== '') {
|
||||
this.$lightbox.find('.lb-caption')
|
||||
.html(this.album[this.currentImageIndex].title)
|
||||
.fadeIn('fast')
|
||||
var $caption = this.$lightbox.find('.lb-caption');
|
||||
if (this.options.sanitizeTitle) {
|
||||
$caption.text(this.album[this.currentImageIndex].title);
|
||||
} else {
|
||||
$caption.html(this.album[this.currentImageIndex].title);
|
||||
}
|
||||
$caption.fadeIn('fast')
|
||||
.find('a').on('click', function(event) {
|
||||
if ($(this).attr('target') !== undefined) {
|
||||
window.open($(this).attr('href'), $(this).attr('target'));
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@ class serendipity_event_lightbox extends serendipity_event
|
|||
$propbag->add('name', PLUGIN_EVENT_LIGHTBOX_NAME);
|
||||
$propbag->add('description', PLUGIN_EVENT_LIGHTBOX_DESC);
|
||||
$propbag->add('author', 'Thomas Nesges, Andy Hopkins, Lokesh Dhakar, Cody Lindley, Stephan Manske, Grischa Brockhaus, Ian');
|
||||
$propbag->add('version', '2.5.0');
|
||||
$propbag->add('version', '2.5.1');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '1.6',
|
||||
'php' => '5.3.0'
|
||||
|
|
Loading…
Reference in a new issue