Fix items in collection not appearing immediately after an import with new system
This commit is contained in:
parent
a1a85911d8
commit
2029d2aebd
2 changed files with 10 additions and 4 deletions
|
@ -98,6 +98,16 @@ Zotero.ItemTreeView.prototype.setTree = function(treebox)
|
|||
|
||||
// Generate the tree contents in a timer to allow message above to display
|
||||
var paneLoader = function(obj) {
|
||||
if (Zotero.locked) {
|
||||
var msg = "Zotero is locked -- not loading items tree";
|
||||
Zotero.debug(msg, 2);
|
||||
|
||||
if (obj._ownerDocument.defaultView.ZoteroPane) {
|
||||
obj._ownerDocument.defaultView.ZoteroPane.clearItemsPaneMessage();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// If a DB transaction is open, display error message and bail
|
||||
if (!Zotero.stateCheck()) {
|
||||
if (obj._ownerDocument.defaultView.ZoteroPane) {
|
||||
|
|
|
@ -394,10 +394,6 @@ var Zotero = new function(){
|
|||
* Check if a DB transaction is open and, if so, disable Zotero
|
||||
*/
|
||||
function stateCheck() {
|
||||
if (Zotero.locked) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Zotero.DB.transactionInProgress()) {
|
||||
this.initialized = false;
|
||||
this.skipLoading = true;
|
||||
|
|
Loading…
Reference in a new issue