Opened 14 years ago
Closed 13 years ago
#19061 closed defect (bug) (fixed)
.pinkynail image toggling is reversed for single file uploads
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.3 | Priority: | normal |
| Severity: | normal | Version: | 3.2.1 |
| Component: | Upload | Keywords: | |
| Focuses: | Cc: |
Description
When a single file is uploaded on "Upload New Media" screen, .pinkynail image toggling is reversed. It's displayed when the file info box is expanded, and is hidden when the box is minimized (see the screenshots). Should be vice versa.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Looking at the code, it seems that the intention was that when there is only one item, the toggle bar doesn't show at all:
// Just one file, no need for collapsible part if ( one.length == 1 ) { jQuery('.slidetoggle', one).slideDown(500).siblings().addClass('hidden').filter('.toggle').toggle(); }However the "hidden" class gets overwritten by the inline styling applied by
toggle()and then the pinknail and show/hide link show when then shouldn't.