mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Close note editor window when the note item is deleted
This commit is contained in:
parent
4f71c2ab09
commit
f02b3464b8
1 changed files with 5 additions and 0 deletions
|
|
@ -120,6 +120,11 @@ function onUnload() {
|
|||
var NotifyCallback = {
|
||||
notify: function(action, type, ids){
|
||||
if (noteEditor.item && ids.includes(noteEditor.item.id)) {
|
||||
if (action == 'delete') {
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
|
||||
var noteTitle = noteEditor.item.getNoteTitle();
|
||||
document.title = noteTitle;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue