Mercurial > defr > drupal > core
annotate misc/form.js @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | c1f4ac30525a |
children |
rev | line source |
---|---|
webmaster@1 | 1 // $Id: form.js,v 1.1 2007/09/12 18:29:32 goba Exp $ |
webmaster@1 | 2 |
webmaster@1 | 3 Drupal.behaviors.multiselectSelector = function() { |
webmaster@1 | 4 // Automatically selects the right radio button in a multiselect control. |
webmaster@1 | 5 $('.multiselect select:not(.multiselectSelector-processed)') |
webmaster@1 | 6 .addClass('multiselectSelector-processed').change(function() { |
webmaster@1 | 7 $('.multiselect input:radio[value="'+ this.id.substr(5) +'"]') |
webmaster@1 | 8 .attr('checked', true); |
webmaster@1 | 9 }); |
webmaster@1 | 10 }; |