Closes #300, when a webpage snapshot is selected in "related" tab, disk icon appears

This commit is contained in:
Dan Stillman 2006-10-03 16:25:16 +00:00
parent c02755cb59
commit eb94d648d7
3 changed files with 23 additions and 1 deletions

View file

@ -58,7 +58,29 @@
for(var i = 0; i < seealso.length; i++)
{
var icon= document.createElement("image");
icon.setAttribute('src','chrome://zotero/skin/treeitem-'+Zotero.ItemTypes.getName(seealso[i].getType())+'.png');
var type = Zotero.ItemTypes.getName(seealso[i].getType());
if (type=='attachment')
{
switch (seealso[i].getAttachmentLinkMode())
{
case Zotero.Attachments.LINK_MODE_LINKED_URL:
type += '-web-link';
break;
case Zotero.Attachments.LINK_MODE_IMPORTED_URL:
type += '-snapshot';
break;
case Zotero.Attachments.LINK_MODE_LINKED_FILE:
type += '-link';
break;
case Zotero.Attachments.LINK_MODE_IMPORTED_FILE:
type += '-file';
break;
}
}
icon.setAttribute('src','chrome://zotero/skin/treeitem-' + type + '.png');
var label = document.createElement("label");
label.setAttribute('value', seealso[i].getField('title'));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 B