diff options
author | David Rothstein <drothstein@gmail.com> | 2014-04-16 17:44:34 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-04-16 17:44:34 -0400 |
commit | 6642fbc7001c728e218170fd286e6b8a24eef24f (patch) | |
tree | f61414ed711b211cceaf4a299de85a328d620f11 /misc | |
parent | dc791ec5839b52c7616bf66993122aa9a1336384 (diff) | |
download | brdo-6642fbc7001c728e218170fd286e6b8a24eef24f.tar.gz brdo-6642fbc7001c728e218170fd286e6b8a24eef24f.tar.bz2 |
Drupal 7.27
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ajax.js | 7 |
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); } }; |