From f1ad4698613d59bc2648b359accd6c6e196434cc Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 7 Dec 2013 19:07:51 -0500 Subject: [PATCH] templates - don't clean up selector conditionals; fixes topic posting bug introduced at 090d35f306bd8d471ab347d8f524afdb1bc244c3 --- public/src/templates.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/src/templates.js b/public/src/templates.js index 51dfd0dc65..2516efb342 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -320,16 +320,16 @@ if (conditionalBlock[1]) { // there is an else statement if (!value) { - template = template.replace(matches[i], conditionalBlock[1].replace(//gi, '')); + template = template.replace(matches[i], conditionalBlock[1].replace(//gi, '')); } else { - template = template.replace(matches[i], conditionalBlock[0].replace(//gi, '')); + template = template.replace(matches[i], conditionalBlock[0].replace(//gi, '')); } } else { // regular if statement if (!value) { template = template.replace(matches[i], ''); } else { - template = template.replace(matches[i], matches[i].replace(//gi, '')); + template = template.replace(matches[i], matches[i].replace(//gi, '')); } } }