mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix for number variables in custom design
This commit is contained in:
parent
879e7d390d
commit
dad057d99d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -342,7 +342,7 @@ NINJA.decodeJavascript = function(invoice, javascript)
|
|||||||
field = toSnakeCase(field);
|
field = toSnakeCase(field);
|
||||||
|
|
||||||
var value = getDescendantProp(invoice, field) || ' ';
|
var value = getDescendantProp(invoice, field) || ' ';
|
||||||
value = doubleDollarSign(value);
|
value = doubleDollarSign(value) + '';
|
||||||
value = value.replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
value = value.replace(/\n/g, "\\n").replace(/\r/g, "\\r");
|
||||||
javascript = javascript.replace(match, '"'+value+'"');
|
javascript = javascript.replace(match, '"'+value+'"');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user