Fasttoggle's AJAX response currently replaces the < a > link itself only, so the node/comment wrapper keeps its server-rendered classes and themes never receive the node--unpublished/comment--unpublished class until the page is fully reloaded. In addition, the ReplaceCommand selector for nodes is the shared class .fasttoggle-ENTITY-status (as well as -promote/-sticky), which matches every fasttoggle link on the page — on a teaser listing a single click swaps the link on all teasers at once (comments already use a per-entity class)

Issue fork fasttoggle-3624035

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ivnish created an issue. See original summary.

ivnish’s picture

Issue summary: View changes

ivnish’s picture

Title: Node wrapper is not updated after AJAX toggle; toggle replaces the link on every node of the page » Node/comment wrapper is not updated after AJAX toggle
Issue summary: View changes

  • ivnish committed 7db1ee76 on 4.2.x
    task: #3624035 Node/comment wrapper is not updated after AJAX toggle
    
    By...
ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.