commit 943d2cd5de7249a5ff824982691be6b9b7934886
parent 083a3600dbaedacc9b52d2b1bb6a6d7e1c82ccee
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 31 Jan 2012 03:31:29 -0500
Remove a couple of repaints
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js
@@ -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?
diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js
@@ -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.";