www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c1672e4d4e7429db88719e6e863574e5dfb552d7
parent 5f89402ce634869d2acaa7c4fa2a5629fcad320d
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 27 Jan 2012 15:37:02 -0500

Fix inserting first citation, broken by b526a7

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1615,7 +1615,7 @@ Zotero.Integration.Session.prototype.resetRequest = function(doc) { Zotero.Integration.Session.prototype.setData = function(data) { var oldStyle = (this.data && this.data.style ? this.data.style : false); this.data = data; - if(!oldStyle || (data.style.styleID && oldStyle.styleID != data.style.styleID)) { + if(data.style.styleID && (!oldStyle || oldStyle.styleID != data.style.styleID)) { this.styleID = data.style.styleID; try { var getStyle = Zotero.Styles.get(data.style.styleID); @@ -1631,7 +1631,7 @@ Zotero.Integration.Session.prototype.setData = function(data) { } return true; - } else { + } else if(oldStyle) { data.style = oldStyle; } return false;