diff --git a/chrome/content/zotero/about.xul b/chrome/content/zotero/about.xul index 4b1e64857..247ca4066 100644 --- a/chrome/content/zotero/about.xul +++ b/chrome/content/zotero/about.xul @@ -10,7 +10,7 @@ orient="vertical" buttons="accept" buttonlabelaccept="&zotero.about.close;" - onload="onLoad();" + onload="moveToAlertPosition(); onLoad();" ondialogaccept="return true;"> @@ -291,9 +294,13 @@ + + modifiers="accel alt" /> \ No newline at end of file diff --git a/chrome/content/zotero/preferences.js b/chrome/content/zotero/preferences.js index db484922d..862c4ae89 100644 --- a/chrome/content/zotero/preferences.js +++ b/chrome/content/zotero/preferences.js @@ -20,13 +20,6 @@ ***** END LICENSE BLOCK ***** */ -var autoUpdateBox; -var reportTranslationFailure; -var positionMenu; -var parseEndnoteBox; -var automaticSnapshots; -var openURLMenu; -var openURLResolvers; var openURLServerField; var openURLVersionMenu; var zoteroPaneOnTopInitial; @@ -45,58 +38,49 @@ var zoteroPaneOnTopInitial; */ function init() -{ - autoUpdateBox = document.getElementById('autoUpdateBox'); - autoUpdateBox.checked = Zotero.Prefs.get('automaticScraperUpdates'); - - reportTranslationFailure = document.getElementById('reportTranslationFailure'); - reportTranslationFailure.checked = Zotero.Prefs.get('reportTranslationFailure'); - - positionMenu = document.getElementById('positionMenu'); - positionMenu.selectedIndex = zoteroPaneOnTopInitial = Zotero.Prefs.get('zoteroPaneOnTop') ? 0 : 1; - - parseEndnoteBox = document.getElementById('parseEndnoteBox'); - parseEndnoteBox.checked = Zotero.Prefs.get('parseEndNoteMIMETypes'); - - automaticSnapshots = document.getElementById('automaticSnapshots'); - automaticSnapshots.checked = Zotero.Prefs.get('automaticSnapshots'); - - openURLServerField = document.getElementById('openURLServerField'); - openURLServerField.value = Zotero.Prefs.get('openURL.resolver'); - openURLVersionMenu = document.getElementById('openURLVersionMenu'); - openURLVersionMenu.value = Zotero.Prefs.get('openURL.version'); - - openURLMenu = document.getElementById('openURLMenu'); - - openURLResolvers = Zotero.OpenURL.discoverResolvers(); - for(var i in openURLResolvers) - { - openURLMenu.insertItemAt(i,openURLResolvers[i]['name']); - if(openURLResolvers[i]['url'] == Zotero.Prefs.get('openURL.resolver') && openURLResolvers[i]['version'] == Zotero.Prefs.get('openURL.version')) - openURLMenu.selectedIndex = i; - } -} - -function accept() { - Zotero.Prefs.set('automaticScraperUpdates', autoUpdateBox.checked); - Zotero.Prefs.set('reportTranslationFailure', reportTranslationFailure.checked); - Zotero.Prefs.set('zoteroPaneOnTop', positionMenu.selectedIndex == 0); - - if(Zotero.Prefs.get('parseEndNoteMIMETypes') != parseEndnoteBox.checked) - { - Zotero.Prefs.set('parseEndNoteMIMETypes', parseEndnoteBox.checked); - Zotero.Ingester.MIMEHandler.init(); + // Display the appropriate modifier keys for the platform + var rows = document.getElementById('zotero-prefpane-keys').getElementsByTagName('row'); + for (var i=0; i - + - + + + - - - -