--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/drupal/misc/form.js Fri Aug 21 16:26:26 2009 +0000
@@ -0,0 +1,10 @@
+// $Id: form.js,v 1.1 2007/09/12 18:29:32 goba Exp $
+
+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);
+ });
+};