diff --git a/static/js/api/pandora.js b/static/js/api/pandora.js index 2055533a..408ad39c 100755 --- a/static/js/api/pandora.js +++ b/static/js/api/pandora.js @@ -132,18 +132,23 @@ function constructList() { var $code = $('') .html(app.actions[id].code[1].replace('/\n/
\n/g')) .hide(); - var $button = new Ox.Button({ - type: "image" - values: [ + /* + var $button = Ox.Button({ + type: "image", + options: [ {id: "one", title: "right"}, {id: "two", title: "down"}, ], }) .addClass("margin") .click(function() { $code.toggle()}) - .appendTo(info) + .appendTo(info); + */ var f = app.actions[id].code[0]; - $('').html(' View Source ('+f+')').appendTo(info) + $('') + .html(' View Source ('+f+')') + .click(function() { $code.toggle()}) + .appendTo(info) $('
').append($code).appendTo(info)
                 hljs.highlightBlock($code[0], '    ');