forked from 0x2620/pandora
update changelog dialog
This commit is contained in:
parent
eaa2f033b8
commit
52adb3fd3d
1 changed files with 9 additions and 15 deletions
|
@ -153,12 +153,19 @@ pandora.ui.changelogDialog = function() {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.Element(), // FIXME
|
content: $('<code>').append(
|
||||||
|
$('<pre>')
|
||||||
|
.addClass('OxSelectable')
|
||||||
|
.css({margin: '16px'})
|
||||||
|
.text(
|
||||||
|
JSON.stringify(JSON.parse(value.data), null, ' ')
|
||||||
|
)
|
||||||
|
),
|
||||||
height: height - 48,
|
height: height - 48,
|
||||||
keys: {enter: 'close', escape: 'close'},
|
keys: {enter: 'close', escape: 'close'},
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
removeOnClose: true,
|
removeOnClose: true,
|
||||||
title: formatURL(value.url, value.line),
|
title: [value.user, value.action, value.changeid].join(' — ')),
|
||||||
width: width - 48
|
width: width - 48
|
||||||
})
|
})
|
||||||
.open();
|
.open();
|
||||||
|
@ -221,19 +228,6 @@ pandora.ui.changelogDialog = function() {
|
||||||
that.superClose();
|
that.superClose();
|
||||||
};
|
};
|
||||||
|
|
||||||
function formatURL(url, line) {
|
|
||||||
return Ox.encodeHTMLEntities(url.split('?')[0]) + ':' + line;
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderLog(logData) {
|
|
||||||
var $checkbox;
|
|
||||||
return Ox.Element()
|
|
||||||
.css({
|
|
||||||
padding: '8px'
|
|
||||||
})
|
|
||||||
.append($('<pre>').html(logData.text));
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateList(key, value) {
|
function updateList(key, value) {
|
||||||
var query = {
|
var query = {
|
||||||
conditions: key == 'all' ? [
|
conditions: key == 'all' ? [
|
||||||
|
|
Loading…
Reference in a new issue