[wp-trac] [WordPress Trac] #18515: UX: better management of workflow in editor (joe is currently editing this post, etc.)

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 27 08:10:53 UTC 2011


#18515: UX: better management of workflow in editor (joe is currently editing this
post, etc.)
------------------------------------+---------------------------
 Reporter:  azaozz                  |       Owner:  jayminkapish
     Type:  enhancement             |      Status:  reopened
 Priority:  normal                  |   Milestone:  3.3
Component:  Editor                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+---------------------------
Changes (by nacin):

 * keywords:  has-patch ux-feedback dev-feedback => has-patch dev-feedback


Comment:

 [attachment:18515.diff] does what I described in [comment:13 above].

  * When a person leaves a post without saving, the lock will terminate
 five seconds later.

 That's it, really. It works. Has a bit of voodoo in the XHR handler to
 ensure the lock terminates five seconds later, without having the script
 hang. The alternative is to delete the meta rather than update it, after
 either waiting five seconds or not. Unfortunately, I found (on Chrome, at
 least) that you can't fire an async XHR call on the unload event and
 expect it to go through, so hanging the script isn't really an option.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18515#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list