www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8616e7e193bd28c4b0442191d428976f968292d0
parent f2fba1b14c858695f176a7e0e563a0356909f40c
Author: Simon Kornblith <simon@simonster.com>
Date:   Sat, 26 Mar 2011 22:39:24 +0000

make sure notes get saved when switching quickly to another item (I think this is only a problem if the new item is a note)


Diffstat:
Mchrome/content/zotero/zoteroPane.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1039,6 +1039,11 @@ var ZoteroPane = new function() var tabs = document.getElementById('zotero-view-tabbox'); + // save note when switching from a note + if(document.getElementById('zotero-item-pane-content').selectedIndex == 2) { + document.getElementById('zotero-note-editor').save(); + } + // Single item selected if (this.itemsView && this.itemsView.selection.count == 1 && this.itemsView.selection.currentIndex != -1) {