From 1b1fb73c832f4126038e5fe36cf8893e218e1414 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 12 Dec 2009 23:36:28 +0000 Subject: #623320 by rfay: Implement AJAX 'css' command in misc/ajax.js (with tests). --- misc/ajax.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'misc/ajax.js') diff --git a/misc/ajax.js b/misc/ajax.js index 9a85ee5e0..b1688e0d4 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -395,6 +395,13 @@ Drupal.ajax.prototype.commands = { alert(response.text, response.title); }, + /** + * 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. */ -- cgit v1.2.3