# HG changeset patch # User Adrien Di Mascio # Date 1242943297 -7200 # Node ID c41c539b8f3400ec9aa622e987441a8f3b22f9ce # Parent 80715c23bacff3e07b4027db0db65dbb4373c04d [javascript] the @attr (xpath) syntax doesn't work anymore with jquery1.3, forget the @ diff -r 80715c23bacf -r c41c539b8f34 web/data/cubicweb.formfilter.js --- a/web/data/cubicweb.formfilter.js Thu May 21 23:59:36 2009 +0200 +++ b/web/data/cubicweb.formfilter.js Fri May 22 00:01:37 2009 +0200 @@ -8,7 +8,6 @@ CubicWeb.require('ajax.js'); //============= filter form functions ========================================// - function copyParam(origparams, newparams, param) { var index = findValue(origparams[0], param); if (index > -1) { @@ -30,7 +29,7 @@ names.push(this.name); values.push(this.value); }); - jQuery(form).find('select option[@selected]').each(function () { + jQuery(form).find('select option[selected]').each(function () { names.push(this.parentNode.name); values.push(this.value); });