diff options
author | Victor Häggqvist <[email protected]> | 2016-01-15 01:26:30 +0100 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2016-01-15 01:26:30 +0100 |
commit | b2ea705d93c560e82ca3822f768d5448589b6b10 (patch) | |
tree | f058956272a8d4b6917947f7823c03a955061d81 /src | |
parent | 717c72b5db4d0e692b752d5acade366c9b168f2c (diff) |
call on all closings
Diffstat (limited to 'src')
-rw-r--r-- | src/LightBox.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/LightBox.js b/src/LightBox.js index abfbd0e..a89d0c4 100644 --- a/src/LightBox.js +++ b/src/LightBox.js @@ -92,7 +92,7 @@ export class LightBox { if (this.image !== null && this.target.href === this.image.src) { log.info('quitting'); - this.quitLightbox(); + if (this.options.quitOnDocClick) this.quitLightbox(); } } @@ -158,12 +158,11 @@ export class LightBox { ) ) ) { - //quitLightbox(); + this.quitLightbox(); return false; } log.debug('unload'); - CSSUtil.setTransitionProperty(this.image, 'opacity '+this.options.animationSpeed/1000+'s linear'); let transitionArgs = '0px'; @@ -268,8 +267,7 @@ export class LightBox { log.debug('click'); if (this.options.quitOnImgClick) { - L.i('implement this'); - //quitLightbox(); + this.quitLightbox(); return false; } |