Opened 10 years ago
Closed 8 years ago
#36453 closed defect (bug) (duplicate)
Disable 'replace' button in replace media frame while attachment is uploading
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.9 |
| Component: | Media | Keywords: | has-patch needs-testing dev-feedback |
| Focuses: | ui, javascript, administration | Cc: |
Description
Steps to reproduce:
- Edit a post
- Insert an image into the editor
- Click on the image and chose 'edit' (pen icon)
- Chose 'replace' in the dialog
- Upload a new image.
- Click on the 'replace' button while the image is still uploading
Console throws javascript error.
(possible) Solution:
Add the require option to the toolbar.items.replace button config,
around line 5082 in media-views.js
replace: {
style: 'primary',
text: l10n.replace,
priority: 80,
requires: { selection: true },
....
Tested version: Version 4.5-RC1-37153
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Hi @ungestaltbar's,
Firstly thanks for posting this bug. I followed the steps and confirm that its a bug.
And yes you were right about missing require selection option. I have fixed that bug with the patch.
Thanks