Previous selection in bibliography export window wasn't restored correctly in Firefox 3

Firefox 3 seems to prefer radiogroup.selectedItem = radio to radio.setAttribute('selected', true)
This commit is contained in:
Dan Stillman 2008-06-20 05:35:23 +00:00
parent a9a84f758c
commit 15c73fc0f8

View File

@ -86,7 +86,8 @@ var Zotero_File_Interface_Bibliography = new function() {
// ONLY FOR bibliography.xul: export options
if(document.getElementById("save-as-rtf")) {
// restore saved bibliographic settings
document.getElementById(Zotero.Prefs.get("export.bibliographySettings")).setAttribute("selected", "true");
document.getElementById('output-radio').selectedItem =
document.getElementById(Zotero.Prefs.get("export.bibliographySettings"));
// disable clipboard on the Mac, because it can't support formatted
// output