diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ajax.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/ajax.js b/misc/ajax.js index 127dd07ae956..088d46df7232 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -544,6 +544,14 @@ Drupal.ajax.prototype.commands = { }, /** + * Command to apply a jQuery method. + */ + invoke: function (ajax, response, status) { + var $element = $(response.selector); + $element[response.method].apply($element, response.arguments); + }, + + /** * Command to restripe a table. */ restripe: function (ajax, response, status) { |