From f508ec2e84a81a6bcbff2637b0eee5a1de3599f8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 6 Oct 2008 21:43:16 +0000 Subject: [PATCH] Fix csledit and cslpreview with new styles architecture -- dependent styles will not be displayed --- chrome/content/zotero/tools/csledit.xul | 12 ++++--- chrome/content/zotero/tools/cslpreview.xul | 39 ++++++++++------------ 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/chrome/content/zotero/tools/csledit.xul b/chrome/content/zotero/tools/csledit.xul index 4d5fdee1a..376dbf6cd 100644 --- a/chrome/content/zotero/tools/csledit.xul +++ b/chrome/content/zotero/tools/csledit.xul @@ -53,9 +53,12 @@ return; } - var csls = Zotero.DB.query("SELECT title, cslID FROM csl ORDER BY title"); - for (var i=0; i'; + str += '

' + style.title + '

'; str += cite; } } @@ -85,7 +88,7 @@ setTimeout(f, 100); } - function generateBibliography(str) { + function generateBibliography(style) { var iframe = document.getElementById('zotero-csl-preview-box'); var items = mainWindow.ZoteroPane.getSelectedItems(); @@ -93,25 +96,19 @@ iframe.contentDocument.documentElement.innerHTML = '

No references selected in Zotero.

'; return ''; } - var csl; - if (str.indexOf("' + citations + bibliography + ''; }