From b40423f3a3ba24efc1bedd156bc97ddc9ec9c532 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 15 Feb 2018 11:16:59 +0100 Subject: [PATCH] Added: Quotes around alternative titles (#2522) Fixes #2511 --- src/UI/Handlebars/Helpers/Series.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js index c11fa0437..dcbf29ff7 100644 --- a/src/UI/Handlebars/Helpers/Series.js +++ b/src/UI/Handlebars/Helpers/Series.js @@ -70,9 +70,9 @@ Handlebars.registerHelper('alternativeTitlesString', function() { }); if (titles.length === 1) { - return titles[0]; + return '"' + titles[0] + '"'; } - return titles.slice(0,titles.length-1).join(", ") + " and " + titles[titles.length-1]; + return '"' + titles.slice(0,titles.length-1).join('", "') + '" and "' + titles[titles.length-1] + '"'; }); Handlebars.registerHelper('GetStatus', function() {