Don't send add notifications for collections if skipNotifier is passed
This commit is contained in:
parent
01f04802f0
commit
d67fd9fda2
1 changed files with 7 additions and 5 deletions
|
@ -360,12 +360,14 @@ Zotero.Collection.prototype._finalizeSave = Zotero.Promise.coroutine(function* (
|
||||||
group.clearCollectionCache();
|
group.clearCollectionCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!env.options.skipNotifier) {
|
||||||
if (isNew) {
|
if (isNew) {
|
||||||
Zotero.Notifier.trigger('add', 'collection', this.id, env.notifierData);
|
Zotero.Notifier.trigger('add', 'collection', this.id, env.notifierData);
|
||||||
}
|
}
|
||||||
else if (!env.options.skipNotifier) {
|
else {
|
||||||
Zotero.Notifier.trigger('modify', 'collection', this.id, env.notifierData);
|
Zotero.Notifier.trigger('modify', 'collection', this.id, env.notifierData);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Invalidate cached child collections
|
// Invalidate cached child collections
|
||||||
if (env.parentIDs) {
|
if (env.parentIDs) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue