From 3a107a2c7c8ca9ef116078563f5dc43992e00b9c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Oct 2006 04:18:53 +0000 Subject: [PATCH] Bug in pref pane position change warning --- chrome/content/zotero/preferences.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/preferences.js b/chrome/content/zotero/preferences.js index 78ebb1b09a..e492729467 100644 --- a/chrome/content/zotero/preferences.js +++ b/chrome/content/zotero/preferences.js @@ -29,10 +29,10 @@ var zoteroPaneOnTopInitial; function init() { autoUpdateBox = document.getElementById('autoUpdateBox'); - autoUpdateBox.checked = zoteroPaneOnTopInitial = Zotero.Prefs.get('automaticScraperUpdates'); + autoUpdateBox.checked = Zotero.Prefs.get('automaticScraperUpdates'); positionMenu = document.getElementById('positionMenu'); - positionMenu.selectedIndex = Zotero.Prefs.get('zoteroPaneOnTop') ? 0 : 1; + positionMenu.selectedIndex = zoteroPaneOnTopInitial = Zotero.Prefs.get('zoteroPaneOnTop') ? 0 : 1; parseEndnoteBox = document.getElementById('parseEndnoteBox'); parseEndnoteBox.checked = Zotero.Prefs.get('parseEndNoteMIMETypes'); @@ -89,7 +89,7 @@ function onOpenURLCustomized() function onPositionChange() { var statusLine = document.getElementById('statusLine'); - if ((positionMenu.selectedIndex == 0) != zoteroPaneOnTopInitial) + if (positionMenu.selectedIndex != zoteroPaneOnTopInitial) { statusLine.value = Zotero.getString('zotero.preferences.status.positionChange'); }