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, ''),