From 78f5247cdbac00a3f78117ca47633cfaf428cd5f Mon Sep 17 00:00:00 2001 From: Quinella Date: Mon, 23 Sep 2013 19:26:46 +0200 Subject: [PATCH] Changed format column separator; prefixed by a comma --- js/client.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/client.js b/js/client.js index 413ead902..1fd2f004f 100644 --- a/js/client.js +++ b/js/client.js @@ -928,13 +928,15 @@ if (isSection) { section = formatsList[j]; isSection = false; - } else if (formatsList[j] === '' || !isNaN(formatsList[j])) { + } else if (formatsList[j] === '' || (formatsList[j].substr(0, 1) === ',' && !isNaN(formatsList[j].substr(1)))) { isSection = true; - var newColumn = parseInt(formatsList[j]) || 0; - if (column !== newColumn) { - column = newColumn; - columnChanged = true; + if (formatsList[j]) { + var newColumn = parseInt(formatsList[j].substr(1)) || 0; + if (column !== newColumn) { + column = newColumn; + columnChanged = true; + } } } else { var searchShow = true;