Prevent deleting My Publications
Previously showed a blank confirmation dialog and logged an error.
This commit is contained in:
parent
221aa25e00
commit
bd18339797
1 changed files with 3 additions and 2 deletions
|
@ -1939,8 +1939,9 @@ var ZoteroPane = new function()
|
|||
this.deleteSelectedCollection = function (deleteItems) {
|
||||
var collectionTreeRow = this.getCollectionTreeRow();
|
||||
|
||||
// Don't allow deleting libraries
|
||||
if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed()) {
|
||||
// Don't allow deleting libraries or My Publications
|
||||
if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed()
|
||||
|| collectionTreeRow.isPublications()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue