Opened 15 years ago
Closed 15 years ago
#12829 closed defect (bug) (fixed)
JS for page/post submit meta-box doesn't update page dynamically
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | JavaScript | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
Go to edit the page/post status or visibility in the submit meta box, then click the cancel button. The page then jumps to element with id="post_status" or id="visibility" (jumping doesn't occur for published on because no id="edit_timestamp").
I believe this occurs because there is a javascript error in post.js where the variable "page" is not defined. Introduced in r13551 when "page" declaration was removed when another occurrence of its use was removed.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Actually worse than just the jumping to the element with matching id. The entire post submit meta box doesn't update on the page dynamically when new options from status, visibility or published on.
E.g. try changing published page to draft (edit, select draft, click ok). Status text stays as "Published" and submit button doesn't change to "Update Page".