commit d3ec8fcdcfe016a9b4d939a706d423970b99e683 parent c5291bdd7dbc1b0a7adaf089472fa889985075b2 Author: Dan Stillman <dstillman@zotero.org> Date: Sun, 19 May 2013 00:14:13 -0400 Ignore standalone-no-display class when building attachment button menu Diffstat:
| M | chrome/content/zotero/zoteroPane.js | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1384,8 +1384,9 @@ var ZoteroPane = new function() for (var i=0; i<popup.childNodes.length; i++) { var node = popup.childNodes[i]; + var className = node.className.replace('standalone-no-display', '').trim(); - switch (node.className) { + switch (className) { case prefix + 'link': node.disabled = itemgroup.isWithinGroup(); break; @@ -1400,7 +1401,7 @@ var ZoteroPane = new function() break; default: - throw ("Invalid class name '" + node.className + "' in ZoteroPane_Local.updateAttachmentButtonMenu()"); + throw ("Invalid class name '" + className + "' in ZoteroPane_Local.updateAttachmentButtonMenu()"); } } }