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 9a85ee5e0..b1688e0d4 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -396,6 +396,13 @@ Drupal.ajax.prototype.commands = { }, /** + * Command to provide the jQuery css() function. + */ + css: function (ajax, response, status) { + $(response.selector).css(response.argument); + }, + + /** * Command to set the settings that will be used for other commands in this response. */ settings: function (ajax, response, status) { |