summaryrefslogtreecommitdiff
path: root/misc/ajax.js
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-04-16 17:48:42 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-04-16 17:48:42 -0400
commit36ed5e2ef54b74bd36f9b9a1e5830dba032a82e6 (patch)
tree3f46eaaf5786b17e9416c939f803581be9edc57d /misc/ajax.js
parent95614ce35deb112da18f1f8841632b718be816c7 (diff)
parent6642fbc7001c728e218170fd286e6b8a24eef24f (diff)
downloadbrdo-36ed5e2ef54b74bd36f9b9a1e5830dba032a82e6.tar.gz
brdo-36ed5e2ef54b74bd36f9b9a1e5830dba032a82e6.tar.bz2
Merge tag '7.27' into 7.x
7.27 release Conflicts: CHANGELOG.txt includes/bootstrap.inc
Diffstat (limited to 'misc/ajax.js')
-rw-r--r--misc/ajax.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/ajax.js b/misc/ajax.js
index 90c3bb8bb..63dd65fdd 100644
--- a/misc/ajax.js
+++ b/misc/ajax.js
@@ -616,6 +616,13 @@ Drupal.ajax.prototype.commands = {
.removeClass('odd even')
.filter(':even').addClass('odd').end()
.filter(':odd').addClass('even');
+ },
+
+ /**
+ * Command to update a form's build ID.
+ */
+ updateBuildId: function(ajax, response, status) {
+ $('input[name="form_build_id"][value="' + response.old + '"]').val(response.new);
}
};