Opened 10 years ago
Closed 10 years ago
#27899 closed defect (bug) (fixed)
No items found during loading playlist preview
Reported by: | pavelevap | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.9.1 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Media | Keywords: | has-patch commit fixed-major |
Focuses: | javascript | Cc: |
Description
For a quick while after opening post with inserted playlist, there is message "No items found." It is only for a sec, but it catching my attention. After a sec, there is nice playlist. But this message is not needed, I guess. Maybe loading indicator would be much better (or simply white box)? And display message only when there are really no items...
Attachments (5)
Change History (15)
This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.
10 years ago
#4
@
10 years ago
- Keywords dev-feedback removed
27899.diff is my revision - I think your patch was stale against trunk, it wouldn't apply. However, I pulled the necessary pieces out and revised the player unsetting logic to always assume an array, players are always pushed onto a stack when added. Due to the possibility of multiple editor instances, each View instance is always responsible for potentially multiple shortcode instances.
This ticket was mentioned in IRC in #wordpress-dev by wonderboymusic. View the logs.
10 years ago
#6
@
10 years ago
For those following along, I think the issue with 27899-01.patch not applying was because I based the patch off the 3.9 branch.
Nonetheless, 27899.3.diff takes the improvements that @wonderboymusic made in 27899.2.diff and switches to the unsetting the players using unbind()
, which should work a bit better when the full DOM is rebuilt by TinyMCE. Everything else seems to be working well.
27899-01.patch adjusts how rendering is handled for the playlist
wpview
to simplify the code and also to fix this issue and an issue where the undo stack would get "stuck."@wonderboymusic should probably give this a read and do some testing before it is committed.