mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
Prevent Item.save() from running when hitting Escape in an empty field (I don't know when this started, but Beta 2 didn't do it...)
This commit is contained in:
parent
1cf88c30e7
commit
bd7d95a576
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn){
|
|||
'setField');
|
||||
}
|
||||
|
||||
if (this._data[field] && this._data[field]==value){
|
||||
if (this._data[field] != undefined && this._data[field]==value){
|
||||
return false;
|
||||
}
|
||||
this._data[field] = value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue