--- a/web/data/cubicweb.preferences.js Tue Jun 23 17:15:52 2009 +0200
+++ b/web/data/cubicweb.preferences.js Tue Jun 23 20:04:15 2009 +0200
@@ -115,16 +115,18 @@
function setCurrentValues(form){
jQuery(form).find('[name^=value]').each(function () {
var input = jQuery(this);
+ var name = input.attr('name');
if(input.attr('type') == 'radio'){
// NOTE: there seems to be a bug with jQuery(input).attr('checked')
// in our case, we can't rely on its value, we use
// the DOM API instead.
if(input[0].checked){
- prefsValues[input.attr('name')] = input.val();
+ prefsValues[name] = input.val();
}
}else{
- prefsValues[input.attr('name')] = input.val();
+ prefsValues[name] = input.val();
}
+ jQuery('[name=edits-'+ name + ']').val(prefsValues[name]);
});
}