diff options
| author | Denis Ledoux <dle@odoo.com> | 2017-03-08 18:00:22 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2017-03-08 18:07:07 +0100 |
| commit | a8efeffbf22bcff497a7ffb9eada545510bac2cd (patch) | |
| tree | aab9e768b3b9dada1dbb49bf2e8606f40aa538d2 /addons | |
| parent | 218a21a37e6af2e2ba0e2b4d8d61d8d52a7547fc (diff) | |
[FIX] pos_mercury: support for Inernet Explorer / Edge
In the method `xml_node_to_string` in `qweb2.js`,
which is used when extending XML templates,
such as this extend of the template `PaymentScreen-Paymentlines`
the method `(new XMLSerializer()).serializeToString(node)`
magically escapes the double quotes `"` in Internet Explorer and Edge,
while this is not the case in other browsers,
therefore converting, for instance,
`this.removeAttr("class");`
to
`this.removeAttr("e;class"e;);`
whhich made the rendering of the template fails.
As this method is quite critical, we do not dare
editing it to use an alternative to `XMLSerializer.serializeToString`
in a stable release
Instead, as a workaround, we just avoid the use of the double
quotes.
opw-708296
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/pos_mercury/static/src/xml/pos_mercury.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/pos_mercury/static/src/xml/pos_mercury.xml b/addons/pos_mercury/static/src/xml/pos_mercury.xml index 02f25588a3c..acf830e2543 100644 --- a/addons/pos_mercury/static/src/xml/pos_mercury.xml +++ b/addons/pos_mercury/static/src/xml/pos_mercury.xml @@ -25,16 +25,16 @@ </t> </t> <t t-jquery="tbody tr.paymentline.selected"> - this.removeAttr("class"); - this.attr('t-attf-class', 'paymentline selected #{line.mercury_swipe_pending ? "o_pos_mercury_swipe_pending" : ""}'); + this.removeAttr('class'); + this.attr('t-attf-class', 'paymentline selected #{line.mercury_swipe_pending ? \'o_pos_mercury_swipe_pending\' : \'\'}'); </t> <t t-jquery="tbody tr.paymentline[t-att-data-cid*='line.cid']"> - this.removeAttr("class"); - this.attr('t-attf-class', 'paymentline #{line.mercury_swipe_pending ? "o_pos_mercury_swipe_pending" : ""}'); + this.removeAttr('class'); + this.attr('t-attf-class', 'paymentline #{line.mercury_swipe_pending ? \'o_pos_mercury_swipe_pending\' : \'\'}'); </t> <t t-jquery="tbody tr td.col-tendered.edit"> - this.removeAttr("class"); - this.attr('t-attf-class', 'col-tendered edit #{line.mercury_swipe_pending ? "o_pos_mercury_swipe_pending" : ""}'); + this.removeAttr('class'); + this.attr('t-attf-class', 'col-tendered edit #{line.mercury_swipe_pending ? \'o_pos_mercury_swipe_pending\' : \'\'}'); </t> </t> |
