Fix for note cursor being reset while editing (since r5572)

This commit is contained in:
Dan Stillman 2010-01-13 21:28:10 +00:00
parent 473d9e3c17
commit 53d2fb6fe9

View File

@ -2323,7 +2323,7 @@ Zotero.Item.prototype.getNote = function() {
// Don't include <div> wrapper when returning value
var startLen = note.substr(0, 36).match(/^<div class="zotero-note znv[0-9]+">/)[0].length;
var endLen = 6; // "</div>".length
note = note.substr(startLen, note.length - endLen);
note = note.substr(startLen, note.length - startLen - endLen);
}
this._noteText = note ? note : '';