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.
Diff:
First rev available at kt/8196.
Nice overall structure, and commenting/documentation. This is going to be great.
memorable_forget
's_inner
should only catch HTTP exceptions I think. Safer and more clear about what its doing.autosave:true
do anything?sisyphus
references I don't think we needmemorable.js
SF
namespaceMemorable.initialize
looks to do similar work asMemorable.add
, could it calladd
?name.length != 28
- what is that about?i = 3; i < list.length
... also could do .slice() and .join() instead of a loop/p/test/blog/_discuss/thread/ce912605/post__None
is that None ok? same for creating a new discussion topic.User Experience
New rev pushed with a number of adjustments:
WSGIHTTPException
for readabilitysisyphus references are cruft from earlier experiments; removed
SF reference removed
Forget action is now decoupled from the individual inputs managers
Cancel links now "forget" the relevant input fields on the form
autosave: true
from simplemde config if its not doing anythingNew rev pushed: