Verified Commit 7939daf4 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2758915 by mdupont, darvanen, -enzo-, Amber Himes Matz, smustgrave:...

Issue #2758915 by mdupont, darvanen, -enzo-, Amber Himes Matz, smustgrave: AJAX commands documentation is misleading when working with render arrays

(cherry picked from commit bfa2a1bf)
parent 7d195a3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@
 * An AJAX command for calling the jQuery after() method.
 *
 * The 'insert/after' command instructs the client to use jQuery's after()
 * method to insert the given HTML content after each element matched by the
 * given selector.
 * method to insert the given render array or HTML content after each element
 * matched by the given selector.
 *
 * This command is implemented by Drupal.AjaxCommands.prototype.insert()
 * defined in misc/ajax.js.
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@
 * An AJAX command for calling the jQuery append() method.
 *
 * The 'insert/append' command instructs the client to use jQuery's append()
 * method to append the given HTML content to the inside of each element matched
 * by the given selector.
 * method to append the given render array or HTML content to the inside of each
 * element matched by the given selector.
 *
 * This command is implemented by Drupal.AjaxCommands.prototype.insert()
 * defined in misc/ajax.js.
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@
 * An AJAX command for calling the jQuery before() method.
 *
 * The 'insert/before' command instructs the client to use jQuery's before()
 * method to insert the given HTML content before each of elements matched by
 * the given selector.
 * method to insert the given render array or HTML content before each of
 * elements matched by the given selector.
 *
 * This command is implemented by Drupal.AjaxCommands.prototype.insert()
 * defined in misc/ajax.js.
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 *
 * The 'insert/html' command instructs the client to use jQuery's html() method
 * to set the HTML content of each element matched by the given selector while
 * leaving the outer tags intact.
 * leaving the outer tags intact using a given render array or HTML markup.
 *
 * This command is implemented by Drupal.AjaxCommands.prototype.insert()
 * defined in misc/ajax.js.
+3 −3
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@
/**
 * Generic AJAX command for inserting content.
 *
 * This command instructs the client to insert the given HTML using whichever
 * jQuery DOM manipulation method has been specified in the #ajax['method']
 * variable of the element that triggered the request.
 * This command instructs the client to insert the given render array or HTML
 * using whichever jQuery DOM manipulation method has been specified in the
 * #ajax['method'] variable of the element that triggered the request.
 *
 * This command is implemented by Drupal.AjaxCommands.prototype.insert()
 * defined in misc/ajax.js.
Loading