commit f0147cae86451a9a15bc19c5699b5a02cda34b22
parent 9d9ab86729922d7dbd169c4934031741635412e1
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 2 Dec 2011 19:30:50 -0500
Fix broken notes when the first note viewed in a session is read-only
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml
@@ -216,9 +216,13 @@
<method name="save">
<body>
<![CDATA[
- var noteField = this._id('noteField');
+ if (this._mode == 'view') {
+ Zotero.debug("Not saving read-only note");
+ return;
+ }
// Update note
+ var noteField = this._id('noteField');
if (this.item) {
// If note is reselected automatically after save
// from external note window, don't overwrite content