export function documentation(event, type, lesson, sticky) { let $item = $w.at(event.context) let data = { type: type, id: event.context.itemId, lesson: lesson, sticky: sticky } console.log('[todo-helper.js documentation] data is', data) if (event.target.checked === true) { console.log('[todo-helper.js documentation] event.target.checked is true') wixWindow.openLightbox('Submit Activities', data) .then(result => { console.log('[todo-helper.js documentation] returning from lightbox', result) if (result.checkOriginal === true) { checkOff(event, type) .then(() => { wixLocation.to('/current-quests') }) } }) } else { checkOff(event, type) } }