From 6d566977ccc1cbc1ac28d0a9f833e69ca637c821 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 28 Apr 2007 05:51:57 +0000 Subject: [PATCH] - Fix changelog link in upgrade wizard after XPI upgrade auto-restart - Don't focus changelog link by default (make it blue rather than red) --- chrome/content/zotero/overlay.xul | 3 +-- chrome/content/zotero/upgrade.xul | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index 6607e243b2..6a23079af2 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -357,8 +357,7 @@ // Used for loading the changelog after upgrades if (Zotero.initialURL) { - gBrowser.selectedTab = gBrowser.addTab(Zotero.initialURL); - Zotero.initialURL = null; + setTimeout("gBrowser.selectedTab = gBrowser.addTab(Zotero.initialURL); Zotero.initialURL = null;", 1); } } else { diff --git a/chrome/content/zotero/upgrade.xul b/chrome/content/zotero/upgrade.xul index 183b69e948..bada363368 100644 --- a/chrome/content/zotero/upgrade.xul +++ b/chrome/content/zotero/upgrade.xul @@ -33,6 +33,7 @@ var wizard = document.getElementById('zotero-schema-upgrade'); wizard.getButton('cancel').setAttribute('disabled', true); wizard.canRewind = false; + wizard.getButton('finish').focus(); // prevent focusing of changelog link }