From 91881a4c7a574483386f34d8efe764e5f0796863 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 12 Feb 2009 09:09:56 +0000 Subject: [PATCH] - LSsmoothbox : Ajout d'un event de femeture lors d'un double clic sur l'image ouverte. --- trunk/includes/js/LSsmoothbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/includes/js/LSsmoothbox.js b/trunk/includes/js/LSsmoothbox.js index 0c37c5ef..60e90bcb 100644 --- a/trunk/includes/js/LSsmoothbox.js +++ b/trunk/includes/js/LSsmoothbox.js @@ -306,6 +306,7 @@ var LSsmoothbox = new Class({ this.open(); this.load(); this.img = new Asset.image(src, {onload: this.resizeToImage.bind(this)}); + this.img.addEvent('dblclick',this.closeConfirm.bind(this)); }, resizeToImage: function() {