[web/views/formrenderer] remove `cubicweb:target` attribute on form once the target <iframe> is inserted
authorAlain Leufroy <alain@leufroy.fr>
Thu, 18 Jun 2015 15:35:08 +0200
changeset 10391 62e138b915bb
parent 10291 4fc5cd6287ab
child 10392 5932de3d50bf
[web/views/formrenderer] remove `cubicweb:target` attribute on form once the target <iframe> is inserted For some unknown reason, IE9 does not want to submit the form inside the <iframe> when the ``cubicweb:target`` attribute exists. (closes #5377672)
web/data/cubicweb.edition.js
--- a/web/data/cubicweb.edition.js	Fri Mar 27 17:21:08 2015 +0100
+++ b/web/data/cubicweb.edition.js	Thu Jun 18 15:35:08 2015 +0200
@@ -573,6 +573,8 @@
                 width: '0px',
                 height: '0px'
             }));
+            form.removeAttr('cubicweb:target'); // useles from now on, pop it
+                                                // to make IE9 happy
         }
     });
 }