// vim: et:ts=4:sw=4:sts=4:ft=javascript pandora.ui.cable = function(id) { var that = Ox.Element().addClass('OxSelectable').css({overflow: 'auto'}); pandora.api.get({id: id, keys: []}, function(result) { var header = result.data.header, content = result.data.content; that.html('') .append($('
').html(header)) .append($('').html(content) )) .scrollTop(0); }); return that; };