Просмотр исходного кода

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.
tags/v1.0^2
Severyn Kozak 9 лет назад
Родитель
Сommit
0427dabbe5
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      static/js/index.js

+ 2
- 2
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('<a href=#>' + codelet.authors[auth] + '</a>');
}
authors.innerHTML = "Authors: <span>" + authorsList.join(", ") + "</span>";
authors.innerHTML = "Authors: <span>" + authorsList.join(" ") + "</span>";

// Needs to be processed on the server
codeElt.innerHTML = '<div id=tablecontainer>' + codelet.code + '</div>';


Загрузка…
Отмена
Сохранить