[javascript] the @attr (xpath) syntax doesn't work anymore with jquery1.3, forget the @
--- 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);
});