From d94a48d91011065818ec267cc153ae75d09ef7a3 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 18 Dec 2014 14:37:23 +0000 Subject: [PATCH] update api docs parser --- static/js/apiDialog.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 9e018415e..e72efc891 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;