branch | drupal |
changeset 74 | 0ff3ba646492 |
73:fcf75e232c5b | 74:0ff3ba646492 |
---|---|
1 // $Id: form.js,v 1.1 2007/09/12 18:29:32 goba Exp $ |
|
2 |
|
3 Drupal.behaviors.multiselectSelector = function() { |
|
4 // Automatically selects the right radio button in a multiselect control. |
|
5 $('.multiselect select:not(.multiselectSelector-processed)') |
|
6 .addClass('multiselectSelector-processed').change(function() { |
|
7 $('.multiselect input:radio[value="'+ this.id.substr(5) +'"]') |
|
8 .attr('checked', true); |
|
9 }); |
|
10 }; |