mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 22:08:45 +01:00
Fix missing icons in link list
This commit is contained in:
parent
bd825787b2
commit
f6c41506b3
@ -900,18 +900,29 @@ var et2_link_list = et2_link_string.extend({
|
|||||||
.appendTo(this.list)
|
.appendTo(this.list)
|
||||||
|
|
||||||
// Icon
|
// Icon
|
||||||
//TODO: Needs vfs widget
|
|
||||||
var icon = $j(document.createElement("td"))
|
var icon = $j(document.createElement("td"))
|
||||||
.appendTo(row)
|
.appendTo(row)
|
||||||
.addClass("icon");
|
.addClass("icon");
|
||||||
if(_link_data.icon)
|
if(_link_data.icon)
|
||||||
{
|
{
|
||||||
var icon_widget = et2_createWidget("image");
|
var icon_widget = et2_createWidget("image");
|
||||||
icon_widget.set_src(_link_data.icon);
|
var src = '';
|
||||||
|
if(_link_data.type)
|
||||||
|
{
|
||||||
|
// VFS - file
|
||||||
|
src = this.egw().mime_icon(_link_data.type, _link_data.icon);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
src = this.egw().image(_link_data.icon);
|
||||||
|
}
|
||||||
|
if(src) icon_widget.set_src(src);
|
||||||
icon.append(icon_widget.getDOMNode());
|
icon.append(icon_widget.getDOMNode());
|
||||||
}
|
}
|
||||||
|
|
||||||
var columns = ['app','title','remark'];
|
var columns = ['app','title','remark'];
|
||||||
|
_link_data.app = this.egw().lang(_link_data.app);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
for(var i = 0; i < columns.length; i++) {
|
for(var i = 0; i < columns.length; i++) {
|
||||||
$j(document.createElement("td"))
|
$j(document.createElement("td"))
|
||||||
|
Loading…
Reference in New Issue
Block a user