commit b5d379d1edc4fb47a9da4593937f09a2143a64ad
parent 498ce68577d893e97fef01d73fb452877b48d879
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 31 Aug 2006 22:45:14 +0000
Don't allow new attachments through New Item menu
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js
@@ -87,6 +87,11 @@ var ScholarPane = new function()
var itemTypes = Scholar.ItemTypes.getTypes();
for(var i = 0; i<itemTypes.length; i++)
{
+ // Don't allow new attachments through this menu
+ if (itemTypes[i]['name']=='attachment')
+ {
+ continue;
+ }
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", Scholar.getString("itemTypes."+itemTypes[i]['name']));
menuitem.setAttribute("oncommand","ScholarPane.newItem("+itemTypes[i]['id']+")");