mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
More debug code for selection issues
This commit is contained in:
parent
7aea4fabf9
commit
29be631546
1 changed files with 3 additions and 0 deletions
|
|
@ -1263,6 +1263,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse)
|
|||
{
|
||||
// Don't change selection if UI updates are disabled (e.g., during sync)
|
||||
if (Zotero.suppressUIUpdates) {
|
||||
Zotero.debug("Sync is running; not selecting item");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1271,6 +1272,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse)
|
|||
if (!this._itemRowMap) {
|
||||
if (this._itemGroup) {
|
||||
this._itemGroup.itemToSelect = { id: id, expand: expand };
|
||||
Zotero.debug("_itemRowMap not yet set; not selecting item");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1303,6 +1305,7 @@ Zotero.ItemTreeView.prototype.selectItem = function(id, expand, noRecurse)
|
|||
return this.selectItem(id, expand, true);
|
||||
}
|
||||
|
||||
Zotero.debug("Could not find row for item; not selecting item");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue