commit 25e49faa2cfb5148aae6e8c0a7c6ba58cbaaabd0
parent a6f253b46a2c014b985ef0210a4467cb05925ab5
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 14 Feb 2012 12:06:26 -0500
Don't break bibliography dialog in RTF Scan
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js
@@ -30,6 +30,7 @@
//////////////////////////////////////////////////////////////////////////////
// Class to provide options for bibliography
+// Used by rtfScan.xul, integrationDocPrefs.xul, and bibliography.xul
var Zotero_File_Interface_Bibliography = new function() {
var _io, _saveStyle;
@@ -45,7 +46,10 @@ var Zotero_File_Interface_Bibliography = new function() {
function init() {
// Set font size from pref
// Affects bibliography.xul and integrationDocPrefs.xul
- Zotero.setFontSize(document.getElementById("zotero-bibliography-container"));
+ var bibContainer = document.getElementById("zotero-bibliography-container");
+ if(bibContainer) {
+ Zotero.setFontSize(document.getElementById("zotero-bibliography-container"));
+ }
if(window.arguments && window.arguments.length) {
_io = window.arguments[0];