update changelogDialog

This commit is contained in:
rolux 2014-12-16 14:04:42 +00:00
parent 44ae4db25a
commit 3f52be78ca

View file

@ -17,7 +17,7 @@ pandora.ui.changelogDialog = function() {
.bindEvent({ .bindEvent({
click: function() { click: function() {
$reloadButton.options({disabled: true}); $reloadButton.options({disabled: true});
Ox.Request.clearCache('FIXME'); Ox.Request.clearCache('findChangeLogs');
$list.reloadList(true); $list.reloadList(true);
} }
}), }),
@ -117,7 +117,7 @@ pandora.ui.changelogDialog = function() {
columnsMovable: true, columnsMovable: true,
columnsResizable: true, columnsResizable: true,
columnsVisible: true, columnsVisible: true,
items: pandora.api.findErrorLogs, items: pandora.api.findChangeLogs,
keys: ['line'], keys: ['line'],
scrollbarVisible: true, scrollbarVisible: true,
sort: [{key: 'created', operator: '-'}], sort: [{key: 'created', operator: '-'}],
@ -129,12 +129,6 @@ pandora.ui.changelogDialog = function() {
Ox.formatCount(data.items, 'entry', 'entries') Ox.formatCount(data.items, 'entry', 'entries')
)); ));
}, },
'delete': function(data) {
pandora.api.removeErrorLogs({ids: data.ids}, function(result) {
Ox.Request.clearCache('findErrorLogs');
$list.reloadList();
});
},
load: function() { load: function() {
$reloadButton.options({disabled: false}); $reloadButton.options({disabled: false});
}, },
@ -198,7 +192,7 @@ pandora.ui.changelogDialog = function() {
minWidth: 512, minWidth: 512,
padding: 0, padding: 0,
removeOnClose: true, removeOnClose: true,
title: Ox._('Error Logs'), title: Ox._('Changelog'),
width: width width: width
}), }),
@ -217,7 +211,7 @@ pandora.ui.changelogDialog = function() {
that.superClose = that.close; that.superClose = that.close;
that.close = function() { that.close = function() {
Ox.Request.clearCache('FIXME'); Ox.Request.clearCache('findChangeLogs');
that.superClose(); that.superClose();
}; };
@ -244,7 +238,7 @@ pandora.ui.changelogDialog = function() {
}; };
$list.options({ $list.options({
items: function(data, callback) { items: function(data, callback) {
return pandora.api.FIXME(Ox.extend(data, { return pandora.api.findChangeLogs(Ox.extend(data, {
query: query query: query
}), callback); }), callback);
} }