[wp-trac] [WordPress Trac] #22266: onbeforeunload alert always triggers with attachments
WordPress Trac
noreply at wordpress.org
Thu Nov 8 16:29:57 UTC 2012
#22266: onbeforeunload alert always triggers with attachments
--------------------------+--------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.5
Component: Media | Version: trunk
Severity: blocker | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by azaozz):
Replying to [comment:6 nacin]:
Right. Tested attaching an one-time-only callback to the `keydown` and
`paste` events so we know when the user has started typing. If that occurs
before all views are loaded, we leave the editor state as "dirty" (i.e.
onbeforeunload will trigger). If the user hasn't started typing when all
views are loaded, we set the editor state to "clean".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22266#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list