diff options
Diffstat (limited to 'misc/ajax.js')
-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); } }; |