Fix "New Collection" button when My Publications is selected
Fixes #1955
This commit is contained in:
parent
ba7f7e3250
commit
33528d0f36
1 changed files with 3 additions and 1 deletions
|
@ -1306,7 +1306,9 @@ var ZoteroPane = new function()
|
||||||
|
|
||||||
// Don't allow normal buttons in My Publications, because things need to
|
// Don't allow normal buttons in My Publications, because things need to
|
||||||
// be dragged and go through the wizard
|
// be dragged and go through the wizard
|
||||||
let forceDisable = collectionTreeRow.isPublications() && command != 'zotero-tb-note-add';
|
let forceDisable = collectionTreeRow.isPublications()
|
||||||
|
&& command != 'cmd_zotero_newCollection'
|
||||||
|
&& command != 'zotero-tb-note-add';
|
||||||
|
|
||||||
if ((collectionTreeRow.editable || overrideEditable) && !forceDisable) {
|
if ((collectionTreeRow.editable || overrideEditable) && !forceDisable) {
|
||||||
if(el.hasAttribute("disabled")) el.removeAttribute("disabled");
|
if(el.hasAttribute("disabled")) el.removeAttribute("disabled");
|
||||||
|
|
Loading…
Reference in a new issue