BCD__newItemReset()

La funzione resetta l’oggetto “nuovo record” (this.BCD.config.module[obj.postType].new.item) ed effettua, anche in considerazione del tipo di post, controlli e valutazioni (date minime, massime, titoli automatici, ecc…)

Alla fine di questo check girano le funzioni:

  • BCD__newItemCheckOverride()
  • BCD__newItemResetRelatedImplementation()
  • BCD__saveInMemoryCheckABackup()

Al termine è possibile comunicare all’observer che si è pronti ad aprire la popup (this.observerItem.next(new WatchItem(this.BCD, ‘newItemReady’, obj.postType, 0, false, true));)