summaryrefslogtreecommitdiff
path: root/misc/ajax.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-12 23:36:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-12 23:36:28 +0000
commit1b1fb73c832f4126038e5fe36cf8893e218e1414 (patch)
treecee7674e4b3a900cb852b028b6e4db99fcde1f2a /misc/ajax.js
parent89f121264314124e4908da1e4473d4f6083e137b (diff)
downloadbrdo-1b1fb73c832f4126038e5fe36cf8893e218e1414.tar.gz
brdo-1b1fb73c832f4126038e5fe36cf8893e218e1414.tar.bz2
#623320 by rfay: Implement AJAX 'css' command in misc/ajax.js (with tests).
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 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) {