Bug 27792: (follow-up) Double escape the escape
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 25 Feb 2021 13:55:15 +0000 (13:55 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Mar 2021 14:14:23 +0000 (15:14 +0100)
The JSON patturn wasn't getting interpreted correctly for me.. the `\`
characters needed escaping with a second `\`.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt

index 1326eba..23d66d9 100644 (file)
                     return value;
                 },{
                     type    : 'text',
-                    pattern : "^\d+(\.\d{2})?$",
+                    pattern : "^\\d+(\.\\d{2})?$",
                     onblur  : 'submit',
                     width   : "8em"
                 });