From 943d2cd5de7249a5ff824982691be6b9b7934886 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 31 Jan 2012 03:31:29 -0500 Subject: [PATCH] Remove a couple of repaints --- chrome/content/zotero/browser.js | 2 -- chrome/content/zotero/fileInterface.js | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index a7d7a0287f..e02fcfe1a9 100644 --- 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 index e211a75d51..b6d35efe37 100644 --- 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.";