dehnavi / get-simple-cms

Automatically exported from code.google.com/p/get-simple-cms
GNU General Public License v3.0
0 stars 0 forks source link

Auto Save saves slug changes as they occur if set too fast. #325

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If autosave is on and set to a few seconds, it will save during mid slug typing 
and create new documents as you type.

To fix: Exclude, title and slug fields from keypress bind, and only act on 
change(blur)

Original issue reported on code.google.com by tablatronics on 12 Jun 2012 at 7:37

GoogleCodeExporter commented 9 years ago
i like that idea - thanks Shawn!

Original comment by ccagle8 on 14 Jun 2012 at 12:50

GoogleCodeExporter commented 9 years ago
I didn't like how onchange events only get fired when a text input loses focus, 
so i changed it to a bind() to catch all changes in any field , typing, and 
programmatic val() etc. But  that change introduced this issue, if your 
autosave is set to like 5 seconds heh, which is what I test with and it works 
fine, I like to stress test. Normally noone will set this.

Are there any other fields that need protecting until finished editing.
That might cause issues if saved mid completion ?

I think title is the only one that generates a file when saving.

Original comment by tablatronics on 15 Jun 2012 at 1:43

GoogleCodeExporter commented 9 years ago
fixed r742

Original comment by tablatronics on 7 Jul 2012 at 6:36