fetch all forms, avoid potential initialization pb stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 01 Feb 2010 18:55:16 +0100
branchstable
changeset 4421 709bc9ea6d1e
parent 4420 a9a8628a1a87
child 4422 c0f41f53f1c3
fetch all forms, avoid potential initialization pb
web/data/cubicweb.edition.js
--- a/web/data/cubicweb.edition.js	Mon Feb 01 18:54:46 2010 +0100
+++ b/web/data/cubicweb.edition.js	Mon Feb 01 18:55:16 2010 +0100
@@ -424,7 +424,7 @@
  */
 function setFormsTarget(node) {
     var $node = jQuery(node || document.body);
-    $node.find('form.entityForm').each(function () {
+    $node.find('form').each(function () {
 	var form = jQuery(this);
 	var target = form.attr('cubicweb:target');
 	if (target) {