Opened 10 years ago
Closed 9 years ago
#36453 closed defect (bug) (duplicate)
Disable 'replace' button in replace media frame while attachment is uploading
| Reported by: | ungestaltbar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch needs-testing dev-feedback |
| Cc: | Focuses: | ui, javascript, administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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