Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#27554 closed task (blessed) (fixed)

Toggle Create a Playlist automatically when a user uploads audio/video

Reported by: wonderboymusic's profile wonderboymusic Owned by: nacin's profile nacin
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.9
Component: Media Keywords:
Focuses: javascript Cc:

Description

There are 2 states in MediaFrame.Post that should have their visibility in the menu toggled automatically: Create Audio Playlist and Create Video Playlist.

The counts should also be calculated in PHP ahead of time instead of using a reduce function in JS.

Attachments (2)

27554.diff (2.1 KB) - added by wonderboymusic 12 years ago.
27554.2.diff (3.2 KB) - added by gcorne 12 years ago.

Download all attachments as: .zip

Change History (8)

#1 @wonderboymusic
12 years ago

In 27788:

Move counting of attachments for audio/video to the backend, instead of using a reduce function in JS.

See #27554.

This ticket was mentioned in IRC in #wordpress-dev by wonderboymusic. View the logs.


12 years ago

#3 @wonderboymusic
12 years ago

In 27789:

Make sure Playlist states that are audio are marked as such with proper localized strings.

See #27554.

@gcorne
12 years ago

#4 @gcorne
12 years ago

27554.2.diff adds logic to hide menu “Create Audio Playlist” and “Create Video Playlist” items if the initial count media count is zero and to show them when a media item of the corresponding type is added to the main collection.

Version 0, edited 12 years ago by gcorne (next)

This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.


12 years ago

#6 @nacin
12 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 27841:

Media Manager: Hide 'Create Playlist' menu items until the user has uploaded audio or video.

props gcorne.
fixes #27554.

Note: See TracTickets for help on using tickets.