Fix switching to classic add citation dialog

This commit is contained in:
Simon Kornblith 2012-01-31 10:58:09 -05:00
parent 8d2c42be78
commit e10c3e2e72

View File

@ -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;
}
/**