19 lines
596 B
JavaScript
19 lines
596 B
JavaScript
// 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($('<div>').css('padding', '8px')
|
|
.addClass('OxSelectable')
|
|
.append($('<pre>').html(header))
|
|
.append($('<pre>').html(content)
|
|
))
|
|
.scrollTop(0);
|
|
|
|
});
|
|
return that;
|
|
};
|
|
|