Mercurial > lada > lada-client
changeset 1426:4de04242f7ce
Fix operator precedence bug.
+ is evaluated before ===.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 06 Apr 2017 14:29:59 +0200 |
parents | 68e579063a47 |
children | c22581d48040 |
files | app/view/window/ImportResponse.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/window/ImportResponse.js Thu Apr 06 12:17:59 2017 +0200 +++ b/app/view/window/ImportResponse.js Thu Apr 06 14:29:59 2017 +0200 @@ -167,7 +167,7 @@ validation.push('<ol>'); var parts = msgs[i].value.split('#'); var str = i18n.getMsg(parts[0]) + - parts[1] === undefined ? '' : parts[1]; + (parts[1] === undefined ? '' : parts[1]); validation.push(str + ' (' + i18n.getMsg(msgs[i].code.toString()) + ')'); validation.push('</ol>'); @@ -207,7 +207,7 @@ validation.push('<ol>'); var parts = msgs[i].value.split('#'); var str = i18n.getMsg(parts[0]) + - parts[1] === undefined ? '' : parts[1]; + (parts[1] === undefined ? '' : parts[1]); validation.push(str + ' (' + i18n.getMsg(msgs[i].code.toString()) + ')'); validation.push('</ol>');