www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c18675801f25e584d61f0375d7bc2e693e7e84c0
parent 0fc91a4ef281b9cf2ff0bc89cb33c7d175f715e6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 13 Mar 2016 04:57:45 -0400

Fix breakage in collection selection from 36db3c98

Diffstat:
Mchrome/content/zotero/xpcom/collectionTreeView.js | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -902,8 +902,7 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi switch (type) { case 'L': - var found = yield this.selectLibrary(id); - break; + return yield this.selectLibrary(id); case 'C': var found = yield this.expandToCollection(id); @@ -915,12 +914,7 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi break; case 'T': - var found = yield this.selectTrash(id); - break; - } - - if (found) { - return true; + return yield this.selectTrash(id); } var row = this._rowMap[type + id];