Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#22255 closed defect (bug) (fixed)

Beta Media button disabled after publishing QuickPress post

Reported by: lessbloat Owned by: nacin
Priority: normal Milestone: 3.5
Component: Media Version: 3.5
Severity: normal Keywords:
Cc: Focuses:

Description

A user that we tested stumbled onto this one.

To reproduce:

  • From the dashboard publish (or save draft) for a post under QuickPress.
  • Then without refreshing the page, try to click the "Beta Media" button.

Actual:

The page scrolls to the top, but the media modal doesn't appear.

Expected:

The media modal should show, allowing you to add images to a second post.

Change History (4)

#1 @SergeyBiryukov
14 years ago

  • Milestone Awaiting Review3.5
  • Versiontrunk

#2 @MikeHansenMe
14 years ago

  • Cc mdhansen@… added

I am seeing the same issue. I also noticed when opening the Beta Media (only works on first page load) and inserting an image it never gets added to the post. Not sure if it is related but figured it was worth mentioning.

#3 @azaozz
14 years ago

When saving the QuickPress postbox/widget is actually reloaded completely with xhr (not sure why). So the event bound to the Add Media button is of course removed. Best way to fix this would be to delegate the click on Add Media. We can also re-attach the event, but ... why go to all the trouble :)

#4 @nacin
14 years ago

  • Owner set to nacin
  • Resolutionfixed
  • Status newclosed

In 22518:

Use event delegation for Add Media, allowing the event to bubble up to #wpbody. Keeps the Add Media button functional on a second use of QuickPress. fixes #22255.

Note: See TracTickets for help on using tickets.