Opened 16 years ago
Closed 16 years ago
#14394 closed defect (bug) (fixed)
Attach Media dialog handles enter keyPress incorrectly
| Reported by: | mdawaffe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Media | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Pressing the enter key while searching for posts in the Attach Media dialog causes the global posts-filter form to submit instead of the AJAX based search results action.
- Go to Media -> Add New
- Upload an image.
- Go to Media -> Unattached.
- Find new image, click "Attach".
- Enter search term in text box.
- Hit Enter.
Attached detects an enter keypress from any appropriate input to stop the form submission and grab the search results instead.
Attached removes inline JS.
Committer: Attached does not include diff to production JS.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [15918]) Fix media dialog keyPress handling. Props mdawaffe. fixes #14394