commit 3a107a2c7c8ca9ef116078563f5dc43992e00b9c parent c97b4b0bc0a13c34a82a03b7a9b8c5be5d933ab9 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 3 Oct 2006 04:18:53 +0000 Bug in pref pane position change warning Diffstat:
| M | 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 @@ -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'); }