Fixes #510, Notes marked as abstracts do not appear with blue icon in Notes tab

This commit is contained in:
Dan Stillman 2007-01-23 23:22:38 +00:00
parent 6671af4918
commit 49be275ad3

View File

@ -312,7 +312,11 @@ var ZoteroItemPane = new function()
for(var i = 0; i < notes.length; i++)
{
var icon = document.createElement('image');
icon.setAttribute('src','chrome://zotero/skin/treeitem-note.png');
var iconType = 'treeitem-note';
if (notes[i].isAbstract()) {
iconType += '-abstract';
}
icon.setAttribute('src','chrome://zotero/skin/' + iconType + '.png');
var label = document.createElement('label');
label.setAttribute('value',_noteToTitle(notes[i].getNote()));