From b2dda2ec23cacf6d5f5e64499ade00001c948eb8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 20 Jun 2011 20:02:14 +0000 Subject: [PATCH] Replace all setTimeout(string, ms) calls with setTimeout(func, ms) for AMO --- chrome/content/zotero/overlay.js | 5 ++++- .../zotero/preferences/preferences.xul | 4 ++-- chrome/content/zotero/zoteroPane.js | 20 +++++++++++++++---- .../zotero/timeline/timelineControls.js | 4 +++- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 4ec88313d6..0f7c8312fd 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -139,7 +139,10 @@ var ZoteroOverlay = new function() // Used for loading pages from upgrade wizard if (Zotero && Zotero.initialURL) { - setTimeout("gBrowser.selectedTab = gBrowser.addTab(Zotero.initialURL); Zotero.initialURL = null;", 1); + setTimeout(function () { + gBrowser.selectedTab = gBrowser.addTab(Zotero.initialURL); + Zotero.initialURL = null; + }, 1); } // Hide browser chrome on Zotero tab diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index 3161e833bd..a29c2b9951 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -277,7 +277,7 @@ To add a new preference: @@ -286,7 +286,7 @@ To add a new preference: