From 53d2fb6fe9d9f0cd30618cc254d3b94341e623e0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 13 Jan 2010 21:28:10 +0000 Subject: [PATCH] Fix for note cursor being reset while editing (since r5572) --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index f035c13a2..93e2212c8 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2323,7 +2323,7 @@ Zotero.Item.prototype.getNote = function() { // Don't include
wrapper when returning value var startLen = note.substr(0, 36).match(/^
/)[0].length; var endLen = 6; // "
".length - note = note.substr(startLen, note.length - endLen); + note = note.substr(startLen, note.length - startLen - endLen); } this._noteText = note ? note : '';