[wp-trac] [WordPress Trac] #22491: Autosave / AYS on the attachment edit screen

WordPress Trac noreply at wordpress.org
Fri Nov 23 01:13:16 UTC 2012


#22491: Autosave / AYS on the attachment edit screen
--------------------------+-----------------------
 Reporter:  helenyhou     |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------
Changes (by johnbillion):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:22491.5.diff] removes the `onbeforeunload` handler when the
 form is submitted or the delete link is clicked. It also disables the
 submit button and displays the spinner so it's consistent with the main
 post editing screen.

 We have a bad case of D.R.Y. on this screen. This code is mostly copied
 from `autosave.js`.

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


More information about the wp-trac mailing list