Upgrade js librairies
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Lightbox v2.11.1
|
||||
* Lightbox v2.11.3
|
||||
* by Lokesh Dhakar
|
||||
*
|
||||
* More info:
|
||||
@@ -478,18 +478,13 @@
|
||||
//ADDED-END
|
||||
|
||||
/*
|
||||
SVGs that don't have width and height attributes specified are reporting width and height
|
||||
values of 0 in Firefox 47 and IE11 on Windows. To fix, we set the width and height to the max
|
||||
dimensions for the viewport rather than 0 x 0.
|
||||
|
||||
https://github.com/lokesh/lightbox2/issues/552
|
||||
Since many SVGs have small intrinsic dimensions, but they support scaling
|
||||
up without quality loss because of their vector format, max out their
|
||||
size.
|
||||
*/
|
||||
|
||||
if (filetype === 'svg') {
|
||||
if ((preloader.width === 0) || preloader.height === 0) {
|
||||
$image.width(maxImageWidth);
|
||||
$image.height(maxImageHeight);
|
||||
}
|
||||
}
|
||||
|
||||
// Fit image inside the viewport.
|
||||
@@ -551,6 +546,7 @@
|
||||
self.$overlay
|
||||
.width($(document).width())
|
||||
.height($(document).height());
|
||||
|
||||
}, 0);
|
||||
*/
|
||||
if(e) {
|
||||
@@ -723,7 +719,6 @@
|
||||
var KEYCODE_RIGHTARROW = 39;
|
||||
|
||||
var keycode = event.keyCode;
|
||||
|
||||
if (keycode === KEYCODE_ESC) {
|
||||
// Prevent bubbling so as to not affect other components on the page.
|
||||
event.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user