diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 9e018415..e72efc89 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -149,18 +149,18 @@ pandora.ui.apiDialog = function() { $doc.html( $doc.html().replace(/BOLD([\w:]+)BOLD/g, '$1') ); - parts = $doc.html().split('notes'); + parts = $doc.html().split('notes:'); if (parts.length == 2) { - parts_ = parts[1].split('see'); + parts_ = parts[1].split('see:'); if (parts_.length == 2) { parts_[0] = parts_[0].replace(/\n\s+?/g, ' '); - parts[1] = parts_.join('see'); + parts[1] = parts_.join('see:'); } else { parts[1] = parts[1].replace(/\n\s+?/g, ' '); } - $doc.html(parts.join('notes')); + $doc.html(parts.join('notes:')); } - parts = $doc.html().split('see'); + parts = $doc.html().split('see:'); if (parts.length == 2) { parts[1] = parts[1].replace(/\n\s+?/, '').split(separator).map( function(action) { @@ -168,7 +168,7 @@ pandora.ui.apiDialog = function() { + action + ''; } ).join(separator); - $doc.html(parts.join('see')); + $doc.html(parts.join('see:')); } pandora.createLinks($doc); return $doc;