From 6642fbc7001c728e218170fd286e6b8a24eef24f Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Wed, 16 Apr 2014 17:44:34 -0400 Subject: Drupal 7.27 --- misc/ajax.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'misc/ajax.js') 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); } }; -- cgit v1.2.3