fix api view

This commit is contained in:
j 2011-12-28 19:01:48 +05:30
parent d3f96386c0
commit ff8e1caeef

View file

@ -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], ' ');