Fix breakage in collection selection from 36db3c98
This commit is contained in:
parent
0fc91a4ef2
commit
c18675801f
1 changed files with 2 additions and 8 deletions
|
@ -902,8 +902,7 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'L':
|
case 'L':
|
||||||
var found = yield this.selectLibrary(id);
|
return yield this.selectLibrary(id);
|
||||||
break;
|
|
||||||
|
|
||||||
case 'C':
|
case 'C':
|
||||||
var found = yield this.expandToCollection(id);
|
var found = yield this.expandToCollection(id);
|
||||||
|
@ -915,12 +914,7 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'T':
|
case 'T':
|
||||||
var found = yield this.selectTrash(id);
|
return yield this.selectTrash(id);
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (found) {
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var row = this._rowMap[type + id];
|
var row = this._rowMap[type + id];
|
||||||
|
|
Loading…
Reference in a new issue