Remove a couple of repaints

This commit is contained in:
Simon Kornblith 2012-01-31 03:31:29 -05:00
parent 083a3600db
commit 943d2cd5de
2 changed files with 5 additions and 5 deletions

View file

@ -482,8 +482,6 @@ var Zotero_Browser = new function() {
collection.addItem(dbItem.id);
}
Zotero.repaint(window);
if(Zotero_Browser.isScraping) {
// initialize close timer between item saves in case translator doesn't call done
Zotero_Browser.progress.startCloseTimer(10000); // is this long enough?

View file

@ -295,9 +295,11 @@ var Zotero_File_Interface = new function() {
Zotero_File_Interface.Progress.show(
Zotero.getString("fileInterface.itemsImported")
);
Zotero.repaint(window);
Zotero.DB.beginTransaction();
translation.translate();
window.setTimeout(function() {
Zotero.DB.beginTransaction();
translation.translate();
}, 0);
} else {
// TODO: localize and remove fileInterface.fileFormatUnsupported string
var unsupportedFormat = "The selected file is not in a supported format.";