diff --git a/chrome/content/zotero/addCitationDialog.js b/chrome/content/zotero/addCitationDialog.js index b0eaf819c5..37376f74a2 100644 --- a/chrome/content/zotero/addCitationDialog.js +++ b/chrome/content/zotero/addCitationDialog.js @@ -103,7 +103,7 @@ var Zotero_Citation_Dialog = new function () { itemNode.setAttribute("value", itemID); itemNode.setAttribute("label", item.getField("title")); itemNode.setAttribute("class", "listitem-iconic"); - itemNode.setAttribute("image", "chrome://zotero/skin/treeitem-"+Zotero.ItemTypes.getName(item.getType())+".png"); + itemNode.setAttribute("image", item.getImageSrc()); document.getElementById("citation-list").appendChild(itemNode); // don't let someone select it again diff --git a/chrome/content/zotero/ingester/browser.js b/chrome/content/zotero/ingester/browser.js index 846e787d4d..e2a4715724 100644 --- a/chrome/content/zotero/ingester/browser.js +++ b/chrome/content/zotero/ingester/browser.js @@ -348,7 +348,7 @@ Zotero_Ingester_Interface._updateStatus = function(data) { // Use folder icon for multiple types, for now Zotero_Ingester_Interface.statusImage.src = "chrome://zotero/skin/treesource-collection.png"; } else { - Zotero_Ingester_Interface.statusImage.src = "chrome://zotero/skin/treeitem-"+itemType+".png"; + Zotero_Ingester_Interface.statusImage.src = Zotero.ItemTypes.getImageSrc(itemType); } Zotero_Ingester_Interface.statusImage.hidden = false; } else { @@ -361,7 +361,7 @@ Zotero_Ingester_Interface._updateStatus = function(data) { */ Zotero_Ingester_Interface._itemDone = function(obj, item, collection) { var title = item.getField("title"); - var icon = "chrome://zotero/skin/treeitem-"+Zotero.ItemTypes.getName(item.getField("itemTypeID"))+".png" + var icon = item.getImageSrc(); Zotero_Ingester_Interface.Progress.addLines([title], [icon]); // add item to collection, if one was specified