Fix switching to classic add citation dialog
This commit is contained in:
parent
8d2c42be78
commit
e10c3e2e72
|
@ -1157,7 +1157,11 @@ var Zotero_QuickFormat = new function () {
|
|||
.getService(Components.interfaces.nsIWindowWatcher)
|
||||
.openWindow(null, 'chrome://zotero/content/integration/addCitationDialog.xul',
|
||||
'', 'chrome,centerscreen,resizable', io);
|
||||
newWindow.addEventListener("load", function() { window.close(); }, false);
|
||||
newWindow.addEventListener("focus", function() {
|
||||
newWindow.removeEventListener("focus", arguments.callee, true);
|
||||
window.close();
|
||||
}, true);
|
||||
accepted = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user