From a6371947bb6576ec92e6585018323f6d7fa8df2a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 24 Jul 2012 21:16:44 +0000 Subject: [PATCH] Get linked image from array working --- etemplate/js/et2_widget_image.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etemplate/js/et2_widget_image.js b/etemplate/js/et2_widget_image.js index 1808c38970..a53e6bef04 100644 --- a/etemplate/js/et2_widget_image.js +++ b/etemplate/js/et2_widget_image.js @@ -84,6 +84,10 @@ var et2_image = et2_baseWidget.extend([et2_IDetachedDOM], { { this.egw().open_link(this.options.href, this.options.extra_link_target, this.options.extra_link_popup); } + else + { + this._super.apply(this,arguments); + } }, transformAttributes: function(_attrs) { @@ -97,6 +101,10 @@ var et2_image = et2_baseWidget.extend([et2_IDetachedDOM], { var src = manager.getEntry(_attrs["src"]); if (src) { + if(typeof src == "object") + { + src = egw().link('/index.php', src); + } _attrs["src"] = src; } }