update api dialog

This commit is contained in:
rolux 2014-12-18 12:09:46 +00:00
parent cd17479385
commit 83f4ec9570

View file

@ -178,11 +178,10 @@ pandora.ui.apiDialog = function() {
}) })
.appendTo($text); .appendTo($text);
$('<div>') $('<div>')
.html('<br><b><tt>' + source.split(':')[0] + '</tt></b>') .html('<br><b><tt>' + source + '</tt></b>')
.appendTo($text); .appendTo($text);
$code = Ox.SyntaxHighlighter({ $code = Ox.SyntaxHighlighter({
showLineNumbers: true, source: code.replace(/\s*?'''[\s\S]+?'''/g, ''),
source: code.replace(/\s*?'''[\s\S]+?'''\n/g, ''),
offset: line offset: line
}) })
.css({ .css({