[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)

authorAlain Leufroy <alain@leufroy.fr>
changeset62e138b915bb
branchdefault
phasepublic
hiddenno
parent revision#4fc5cd6287ab Added tag cubicweb-debian-version-3.19.11-2 for changeset 6d265ea7d56f
child revision#5932de3d50bf [pkg] prepare 3.19.12
files modified by this revision
web/data/cubicweb.edition.js
# HG changeset patch
# User Alain Leufroy <alain@leufroy.fr>
# Date 1434634508 -7200
# Thu Jun 18 15:35:08 2015 +0200
# Node ID 62e138b915bbb534fa870fef2e1acf58e374a727
# Parent 4fc5cd6287abdf94d9b2672926542133435b6345
[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)

diff --git a/web/data/cubicweb.edition.js b/web/data/cubicweb.edition.js
@@ -571,10 +571,12 @@
1                  id: target,
2                  src: 'javascript: void(0)',
3                  width: '0px',
4                  height: '0px'
5              }));
6 +            form.removeAttr('cubicweb:target'); // useles from now on, pop it
7 +                                                // to make IE9 happy
8          }
9      });
10  }
11 
12  jQuery(document).ready(function() {