blob: d3a9f692fbf9ef201c17426c3c5c24f20ab0fa06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// $Id$
Drupal.behaviors.multiselectSelector = {
attach: function(context) {
// Automatically selects the right radio button in a multiselect control.
$('.multiselect select:not(.multiselectSelector-processed)', context)
.addClass('multiselectSelector-processed').change(function() {
$('.multiselect input:radio[value="'+ this.id.substr(5) +'"]')
.attr('checked', true);
});
}
};
|