Fix broken notes when the first note viewed in a session is read-only
This commit is contained in:
parent
9d9ab86729
commit
f0147cae86
1 changed files with 5 additions and 1 deletions
|
@ -216,9 +216,13 @@
|
||||||
<method name="save">
|
<method name="save">
|
||||||
<body>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
var noteField = this._id('noteField');
|
if (this._mode == 'view') {
|
||||||
|
Zotero.debug("Not saving read-only note");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Update note
|
// Update note
|
||||||
|
var noteField = this._id('noteField');
|
||||||
if (this.item) {
|
if (this.item) {
|
||||||
// If note is reselected automatically after save
|
// If note is reselected automatically after save
|
||||||
// from external note window, don't overwrite content
|
// from external note window, don't overwrite content
|
||||||
|
|
Loading…
Add table
Reference in a new issue