zotero/chrome
abaevbog 6787dcd596
Citation dialog: do not wait for cited items to load (#5127)
Before making the dialog interactable.

Initialize loading cited items via io.getItems when the dialog appears.
Once they are loaded, itemsList is refreshed to include
cited matching items and all subsequent searches will include
them too. During the refresh immediately after cited items load,
try to preserve focused/selected state of items.

Added IOManager.preInit that is ran as soon as the dialog
is loaded. Move accept/cancel initialization there.
IOManager.init runs at the very end of onLoad because
it relies on most data and layouts being loaded,
It means if there is some delay or error during loading,
the dialog cannot be closed. To avoid it, setup
cancel/accept buttons separately in the beginning.

Also, minor refactoring of SearchHandler to handle
refreshing of cited items separately from selected and
open items.

Fixes: #5121
2025-03-20 23:42:00 -04:00
..
content Citation dialog: do not wait for cited items to load (#5127) 2025-03-20 23:42:00 -04:00
locale Citation dialog: do not wait for cited items to load (#5127) 2025-03-20 23:42:00 -04:00
skin/default/zotero Restore attachment download progress spinner in item row (#5124) 2025-03-18 14:10:24 -04:00