Fix broken notes when the first note viewed in a session is read-only

This commit is contained in:
Dan Stillman 2011-12-02 19:30:50 -05:00
parent 9d9ab86729
commit f0147cae86

View file

@ -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