From 0684030d9b8b32f9472adea39fb779638fe57c15 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 22 Aug 2009 16:52:35 +0000 Subject: [PATCH] fix counter moving in the wrong direction --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 4ff5c4373..14ce3847e 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -568,7 +568,7 @@ Zotero.Integration.Document.prototype.editBibliography = function() { // Make sure we have a bibliography if(!this._getFields(true)) return false; var haveBibliography = false; - for(var i=this._fields.length-1; i>=0; i++) { + for(var i=this._fields.length-1; i>=0; i--) { if(this._fields[i].getCode().substr(0, BIBLIOGRAPHY_CODE.length) == BIBLIOGRAPHY_CODE) { haveBibliography = true; break;