remedy for strange bitrot in api dialog
This commit is contained in:
parent
91cb09006a
commit
d3c19e0db9
1 changed files with 11 additions and 13 deletions
|
@ -157,20 +157,18 @@ 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) {
|
.split(comma + whitespace)
|
||||||
return part
|
.map(function(action) {
|
||||||
.split(comma + whitespace)
|
action = Ox.stripTags(action);
|
||||||
.map(function(action) {
|
return '<span class="OxMethod"><a href="/api/'
|
||||||
action = Ox.stripTags(action);
|
+ action + '">' + action + '</a></span>';
|
||||||
return '<span class="OxMethod"><a href="/api/'
|
|
||||||
+ action + '">' + action + '</a></span>';
|
|
||||||
})
|
|
||||||
.join(comma + whitespace);
|
|
||||||
|
|
||||||
})
|
})
|
||||||
.join(comma + linebreak);
|
.join(comma + whitespace);
|
||||||
|
parts[1] = parts_.join(
|
||||||
|
linebreak + linebreak + '<b>source</b>' + colon + whitespace
|
||||||
|
);
|
||||||
$doc.html(parts.join('<b>see</b>' + colon + whitespace));
|
$doc.html(parts.join('<b>see</b>' + colon + whitespace));
|
||||||
}
|
}
|
||||||
pandora.createLinks($doc);
|
pandora.createLinks($doc);
|
||||||
|
|
Loading…
Reference in a new issue