summaryrefslogtreecommitdiff
path: root/misc/ajax.js
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-04-16 17:44:34 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-04-16 17:44:34 -0400
commit6642fbc7001c728e218170fd286e6b8a24eef24f (patch)
treef61414ed711b211cceaf4a299de85a328d620f11 /misc/ajax.js
parentdc791ec5839b52c7616bf66993122aa9a1336384 (diff)
downloadbrdo-6642fbc7001c728e218170fd286e6b8a24eef24f.tar.gz
brdo-6642fbc7001c728e218170fd286e6b8a24eef24f.tar.bz2
Drupal 7.27
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);
}
};