#12369 closed defect (bug) (fixed)
jQuery's .live() in post.js binds to all checkboxes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | major | Version: | 3.0 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
According to http://api.jquery.com/live/#caveats
DOM traversal methods are not fully supported for finding elements to send to .live(). Rather, the .live() method should always be called directly after a selector, as in the example above.
post.js uses jQuery's traversal methods to select the taxonomy checkboxes and their corresponding popular checkboxes, causing live() to bind all checkboxes.
Attached switches the live() binding to a single selector.
NB: Attached only modifies post.dev.js. SCRIPT_DEBUG necessary for testing, post.js should be generated by committer.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [13410]) Switch live() binding to a single selector. Props mdawaffe. fixes #12369