diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-12 18:29:32 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-12 18:29:32 +0000 |
commit | 21ac9f1917595492fa9997e565bf11ec8d8cd14f (patch) | |
tree | c90c3c454de850d5a315f5a4cae2404e87a56b94 /misc/form.js | |
parent | b3fe5b9cbff70dd29a574e6770f32bcb48c6a78c (diff) | |
download | brdo-21ac9f1917595492fa9997e565bf11ec8d8cd14f.tar.gz brdo-21ac9f1917595492fa9997e565bf11ec8d8cd14f.tar.bz2 |
#174708 by multiple contributors: update jQuery to 1.2
Diffstat (limited to 'misc/form.js')
-rw-r--r-- | misc/form.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/form.js b/misc/form.js new file mode 100644 index 000000000..f5e3e6846 --- /dev/null +++ b/misc/form.js @@ -0,0 +1,10 @@ +// $Id$ + +Drupal.behaviors.multiselectSelector = function() { + // Automatically selects the right radio button in a multiselect control. + $('.multiselect select:not(.multiselectSelector-processed)') + .addClass('multiselectSelector-processed').change(function() { + $('.multiselect input:radio[value="'+ this.id.substr(5) +'"]') + .attr('checked', true); + }); +}; |