Fix note loading

This commit is contained in:
Dan Stillman 2015-08-06 22:49:21 -04:00
parent 536cd867d7
commit 06867d886e

View file

@ -1294,6 +1294,7 @@ var ZoteroPane = new function()
var clearUndo = noteEditor.item ? noteEditor.item.id != item.id : false; var clearUndo = noteEditor.item ? noteEditor.item.id != item.id : false;
noteEditor.parent = null; noteEditor.parent = null;
yield item.loadNote();
noteEditor.item = item; noteEditor.item = item;
// If loading new or different note, disable undo while we repopulate the text field // If loading new or different note, disable undo while we repopulate the text field