New rev pushed with a number of adjustments: * Changed this to `WSGIHTTPException` for readability * SimpleMDE autosave does not appear to work; even if it did, it's "forget before successful post" doesn't really meet our needs. * sisyphus references are cruft from earlier experiments; removed
* SF reference removed * RE: Memorable.initialize; good catch! it can, and has been changed. Didn't notice how those two had merged after a few refactors * RE: length check; antispam input names make those names unusable as identifiers; however, refactored this to use a configurable regex. * RE: slice vs loop; good suggestion, changed. * the None just happens to be the class that element gets rendered with, and gets used as part of the key since it can be uniquely identified. Might be worth exploring why that is in a separate ticket, but doesn't affect this work. * Forget action is now decoupled from the individual inputs managers * Cancel links now "forget" the relevant input fields on the form * Logout now writes the memorable cookie to forget all (which self-destructs), but also means that memorable.js is registered at the template level, rather than at the EW level. --- ** [tickets:#8196] Save content before form submission** **Status:** open **Milestone:** unreleased **Created:** Wed Mar 14, 2018 06:28 PM UTC by Kenton Taylor **Last Updated:** Wed Mar 21, 2018 04:07 PM UTC **Owner:** Kenton Taylor It would be helpful to save form content before submitting, in case the Antispam spinner/honeypot rejects it, or you get logged out. And obvious restore the content when viewing the form again. Use localStorage? Clear it after a successful submit? And/or after an hour? Also need to deal with spinner field names properly. --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.