Get linked image from array working

This commit is contained in:
Nathan Gray 2012-07-24 21:16:44 +00:00
parent cc52575549
commit a6371947bb

View File

@ -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;
}
}