Mercurial > defr > drupal > core
comparison misc/form.js @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:5a113a1c4740 | 1:c1f4ac30525a |
---|---|
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 }; |