From ff8e1caeef7ab971bc56fa82760d504fb34a9b89 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 28 Dec 2011 19:01:48 +0530 Subject: [PATCH] fix api view --- static/js/api/pandora.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/static/js/api/pandora.js b/static/js/api/pandora.js index 2055533a2..408ad39cd 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], '    ');