From 8cf134f988dba97184a1cf03fe27b5feaa55b61d Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 18 Dec 2014 15:26:09 +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 cfc170d9c..97e33c7f0 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -232,17 +232,17 @@ pandora.ui.apiDialog = function() { that.select = function(id) { if (id && actions[id]) { - $text.html( - '

' - + id + '


' - ); var code = actions[id].code[1], source = actions[id].code[0], line = Math.round(Ox.last(source.split(':')) || 0), + $title = $('

') + .css({paddingLeft: '4px'}) + .html('' + id + '') + .appendTo($text); $doc = getDoc(actions[id].doc).appendTo($text), $source = $('
') - .css({padding: '4px'}) - .html('
' + source + '') + .css({paddingLeft: '4px'}) + .html('
source: ' + source + '') .appendTo($text), $code = Ox.SyntaxHighlighter({ source: code.replace(/\s*?'''[\s\S]+?'''/g, ''),