# HG changeset patch # User Adrien Di Mascio # Date 1245770152 -7200 # Node ID 5580798606671879962dcea651bc80ca6c200f81 # Parent edec2c9055e5d45cf47c770d46ecffda83527c8a [javascript][preferences] fix setCurrentValues to consider all kind of widgets (textarea, select, etc.) not just inputs diff -r edec2c9055e5 -r 558079860667 web/data/cubicweb.preferences.js --- a/web/data/cubicweb.preferences.js Tue Jun 23 16:31:15 2009 +0200 +++ b/web/data/cubicweb.preferences.js Tue Jun 23 17:15:52 2009 +0200 @@ -113,7 +113,7 @@ } function setCurrentValues(form){ - jQuery(form).find('input[name^=value]').each(function () { + jQuery(form).find('[name^=value]').each(function () { var input = jQuery(this); if(input.attr('type') == 'radio'){ // NOTE: there seems to be a bug with jQuery(input).attr('checked') @@ -127,7 +127,7 @@ } }); } - + function initEvents(){ jQuery('form').each(function() { var form = jQuery(this);