From 809ad4a6788ed95065102fa38662388beae7421b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 9 Apr 2015 10:52:05 +0000 Subject: [PATCH] Fix click handler does not work always for images with href attribute --- etemplate/js/et2_widget_image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_image.js b/etemplate/js/et2_widget_image.js index 4748c6d991..c1e75e2173 100644 --- a/etemplate/js/et2_widget_image.js +++ b/etemplate/js/et2_widget_image.js @@ -157,11 +157,12 @@ var et2_image = expose(et2_baseWidget.extend([et2_IDetachedDOM], var popup = this.options.extra_link_popup; var target = this.options.extra_link_target; var self = this; - this.image.parent().click(function(e) + this.image.click(function(e) { if (self.options.expose_view) { self._init_blueimp_gallery(e,_value); + e.stopImmediatePropagation(); } else {