quick fix for tracker links on title open wrong popup

This commit is contained in:
Ralf Becker 2015-03-31 07:16:21 +00:00
parent 65fb3fc6be
commit d35ea3845d

View File

@ -234,6 +234,8 @@ var et2_description = expose(et2_baseWidget.extend([et2_IDetachedDOM],
); );
if(this.options.extra_link_popup || this.options.mime) if(this.options.extra_link_popup || this.options.mime)
{ {
var href = this.options.href;
var mime_data = this.options.mime_data;
var self= this; var self= this;
var $span = this.options.mime_data? jQuery(this.span): jQuery('a',this.span); var $span = this.options.mime_data? jQuery(this.span): jQuery('a',this.span);
$span.click(function(e) { $span.click(function(e) {
@ -241,11 +243,11 @@ var et2_description = expose(et2_baseWidget.extend([et2_IDetachedDOM],
{ {
// Do not show thumbnail indicator for single expose view // Do not show thumbnail indicator for single expose view
self.expose_options.thumbnailIndicators = false; self.expose_options.thumbnailIndicators = false;
self._init_blueimp_gallery(e,self.options.href); self._init_blueimp_gallery(e, href);
} }
else else
{ {
egw(window).open_link(self.options.mime_data || self.options.href, self.options.extra_link_target, self.options.extra_link_popup, null, null, self.options.mime); egw(window).open_link(mime_data || href, self.options.extra_link_target, self.options.extra_link_popup, null, null, self.options.mime);
} }
e.preventDefault(); e.preventDefault();
return false; return false;