remedy for strange bitrot in api dialog

This commit is contained in:
rolux 2015-02-12 18:12:10 +01:00
parent 91cb09006a
commit d3c19e0db9

View file

@ -157,10 +157,8 @@ pandora.ui.apiDialog = function() {
); );
parts = $doc.html().split('<b>see</b>' + colon + whitespace); parts = $doc.html().split('<b>see</b>' + colon + whitespace);
if (parts.length == 2) { if (parts.length == 2) {
parts[1] = parts[1] parts_ = parts[1].split('<b>source</b>' + colon + whitespace);
.split(comma + linebreak) parts_[0] = parts_[0]
.map(function(part) {
return part
.split(comma + whitespace) .split(comma + whitespace)
.map(function(action) { .map(function(action) {
action = Ox.stripTags(action); action = Ox.stripTags(action);
@ -168,9 +166,9 @@ pandora.ui.apiDialog = function() {
+ action + '">' + action + '</a></span>'; + action + '">' + action + '</a></span>';
}) })
.join(comma + whitespace); .join(comma + whitespace);
parts[1] = parts_.join(
}) linebreak + linebreak + '<b>source</b>' + colon + whitespace
.join(comma + linebreak); );
$doc.html(parts.join('<b>see</b>' + colon + whitespace)); $doc.html(parts.join('<b>see</b>' + colon + whitespace));
} }
pandora.createLinks($doc); pandora.createLinks($doc);