blob: f5e3e6846b0c18352ba8daaa46f43a4b1814a146 (
plain)
1
2
3
4
5
6
7
8
9
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);
});
};
|