From 15c73fc0f862f46fd02aac051992700760a38151 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 20 Jun 2008 05:35:23 +0000 Subject: [PATCH] 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) --- chrome/content/zotero/bibliography.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index a52fb3f4d..5db4ad753 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -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