Drupal's Ajax insert command calls $wrapper[method]($newContent).

jQuery has no .replace() method, so the "Add Field" / "Remove Field" / "Add Style" / "Remove Style" AJAX buttons in the Seeds Layouts settings forms throw "TypeError:

$wrapper[method] is not a function" and the AJAX response fails. The correct jQuery DOM insertion method is replaceWith.

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

m.shams created an issue. See original summary.

m.shams’s picture

Status: Active » Needs review