From 381fe38b897e57f402465d99fac30892e4130a96 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 17 Jul 2016 15:08:52 -0400 Subject: [PATCH] Fix #1038, Notes skip back to beginning if typing during auto-save Set a unique id on the note editor at initialization and pass it along to item.saveTx(). When notify() is called, if the save was triggered from the current note field, don't do a refresh. This does mean that the note field won't reflect changes (e.g., normalizations) made by the save process until the user clicks away and back, which makes me a little uncomfortable. If we can find specific cases where that occurs (paste?), we can reevaluate this approach. --- chrome/content/zotero/bindings/noteeditor.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml index 987c3d1b0..049fe119e 100644 --- a/chrome/content/zotero/bindings/noteeditor.xml +++ b/chrome/content/zotero/bindings/noteeditor.xml @@ -144,6 +144,7 @@ @@ -158,6 +159,7 @@ +