[javascript] the @attr (xpath) syntax doesn't work anymore with jquery1.3, forget the @
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 22 May 2009 00:01:37 +0200
changeset 1894 c41c539b8f34
parent 1893 80715c23bacf
child 1895 bf46668f9cac
[javascript] the @attr (xpath) syntax doesn't work anymore with jquery1.3, forget the @
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);
     });