Fix breakage in collection selection from 36db3c98

This commit is contained in:
Dan Stillman 2016-03-13 04:57:45 -04:00
parent 0fc91a4ef2
commit c18675801f

View file

@ -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];