From 8cfca53b48a5cf36a22e05fcf67647f77536337d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 May 2015 17:05:58 -0400 Subject: [PATCH] Register itembox and noteeditor with notifier and refresh on update Since selected items are no longer reselected, the boxes now need to refresh themselves. --- chrome/content/zotero/bindings/itembox.xml | 30 ++++++++++ chrome/content/zotero/bindings/noteeditor.xml | 29 +++++++++ test/tests/itemPaneTest.js | 59 +++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 test/tests/itemPaneTest.js diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index b79578f88..da1644334 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -265,6 +265,36 @@ onget="return '(' + Zotero.getString('pane.item.defaultLastName') + ')'"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test

'); + yield item.saveTx(); + + assert.equal(noteBox.noteField.value, '

Test

'); + }) + }) +})