Fix click handler does not work always for images with href attribute

This commit is contained in:
Hadi Nategh 2015-04-09 10:52:05 +00:00
parent 6abaf60a22
commit 809ad4a678

View File

@ -157,11 +157,12 @@ var et2_image = expose(et2_baseWidget.extend([et2_IDetachedDOM],
var popup = this.options.extra_link_popup; var popup = this.options.extra_link_popup;
var target = this.options.extra_link_target; var target = this.options.extra_link_target;
var self = this; var self = this;
this.image.parent().click(function(e) this.image.click(function(e)
{ {
if (self.options.expose_view) if (self.options.expose_view)
{ {
self._init_blueimp_gallery(e,_value); self._init_blueimp_gallery(e,_value);
e.stopImmediatePropagation();
} }
else else
{ {