From 0427dabbe55dddd3d7cf9705f479f56377585e3c Mon Sep 17 00:00:00 2001 From: Severyn Kozak Date: Sat, 12 Jul 2014 00:29:40 -0400 Subject: [PATCH] Fix UI codelet metadata duplicate comma bug. static/js/index.js -Author names in codelets' hidden metadata were delimited by two commas instead of one; fix. --- static/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index ee03a1a..83f1fd2 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -262,14 +262,14 @@ function createResult(codelet) { var authorsList = []; for(var auth = 0; auth < codelet.authors.length; auth++){ currLength += codelet.authors[auth].length; - if(maxAttributeLength < currLength){ + if(6 < currLength){ authorsList.push("..."); break; } else authorsList.push('' + codelet.authors[auth] + ''); } - authors.innerHTML = "Authors: " + authorsList.join(", ") + ""; + authors.innerHTML = "Authors: " + authorsList.join(" ") + ""; // Needs to be processed on the server codeElt.innerHTML = '
' + codelet.code + '
';