diff --git a/chrome/content/zotero/tools/csledit.xul b/chrome/content/zotero/tools/csledit.xul index 4d5fdee1aa..376dbf6cd4 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 + ''; }