forked from 0x2620/pandora
fix api view
This commit is contained in:
parent
d3f96386c0
commit
ff8e1caeef
1 changed files with 10 additions and 5 deletions
|
@ -132,18 +132,23 @@ function constructList() {
|
||||||
var $code = $('<code class="python">')
|
var $code = $('<code class="python">')
|
||||||
.html(app.actions[id].code[1].replace('/\n/<br>\n/g'))
|
.html(app.actions[id].code[1].replace('/\n/<br>\n/g'))
|
||||||
.hide();
|
.hide();
|
||||||
var $button = new Ox.Button({
|
/*
|
||||||
type: "image"
|
var $button = Ox.Button({
|
||||||
values: [
|
type: "image",
|
||||||
|
options: [
|
||||||
{id: "one", title: "right"},
|
{id: "one", title: "right"},
|
||||||
{id: "two", title: "down"},
|
{id: "two", title: "down"},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
.addClass("margin")
|
.addClass("margin")
|
||||||
.click(function() { $code.toggle()})
|
.click(function() { $code.toggle()})
|
||||||
.appendTo(info)
|
.appendTo(info);
|
||||||
|
*/
|
||||||
var f = app.actions[id].code[0];
|
var f = app.actions[id].code[0];
|
||||||
$('<span>').html(' View Source ('+f+')').appendTo(info)
|
$('<span>')
|
||||||
|
.html(' View Source ('+f+')')
|
||||||
|
.click(function() { $code.toggle()})
|
||||||
|
.appendTo(info)
|
||||||
$('<pre>').append($code).appendTo(info)
|
$('<pre>').append($code).appendTo(info)
|
||||||
hljs.highlightBlock($code[0], ' ');
|
hljs.highlightBlock($code[0], ' ');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue