rename error log api, fixes #2591

This commit is contained in:
j 2014-12-16 13:44:42 +00:00
commit 44ae4db25a
5 changed files with 18 additions and 18 deletions

View file

@ -117,7 +117,7 @@ pandora.ui.changelogDialog = function() {
columnsMovable: true,
columnsResizable: true,
columnsVisible: true,
items: pandora.api.findLogs,
items: pandora.api.findErrorLogs,
keys: ['line'],
scrollbarVisible: true,
sort: [{key: 'created', operator: '-'}],
@ -130,8 +130,8 @@ pandora.ui.changelogDialog = function() {
));
},
'delete': function(data) {
pandora.api.removeLogs({ids: data.ids}, function(result) {
Ox.Request.clearCache('findLogs');
pandora.api.removeErrorLogs({ids: data.ids}, function(result) {
Ox.Request.clearCache('findErrorLogs');
$list.reloadList();
});
},

View file

@ -17,7 +17,7 @@ pandora.ui.errorlogsDialog = function() {
.bindEvent({
click: function() {
$reloadButton.options({disabled: true});
Ox.Request.clearCache('findLogs');
Ox.Request.clearCache('findErrorLogs');
$list.reloadList(true);
}
}),
@ -118,7 +118,7 @@ pandora.ui.errorlogsDialog = function() {
columnsMovable: true,
columnsResizable: true,
columnsVisible: true,
items: pandora.api.findLogs,
items: pandora.api.findErrorLogs,
keys: ['line'],
scrollbarVisible: true,
sort: [{key: 'created', operator: '-'}],
@ -131,8 +131,8 @@ pandora.ui.errorlogsDialog = function() {
));
},
'delete': function(data) {
pandora.api.removeLogs({ids: data.ids}, function(result) {
Ox.Request.clearCache('findLogs');
pandora.api.removeErrorLogs({ids: data.ids}, function(result) {
Ox.Request.clearCache('findErrorLogs');
$list.reloadList();
});
},
@ -226,7 +226,7 @@ pandora.ui.errorlogsDialog = function() {
that.superClose = that.close;
that.close = function() {
Ox.Request.clearCache('findLogs');
Ox.Request.clearCache('findErrorLogs');
that.superClose();
};
@ -253,7 +253,7 @@ pandora.ui.errorlogsDialog = function() {
};
$list.options({
items: function(data, callback) {
return pandora.api.findLogs(Ox.extend(data, {
return pandora.api.findErrorLogs(Ox.extend(data, {
query: query
}), callback);
}

View file

@ -23,7 +23,7 @@ appPanel
window.onerror = function(error, url, line) {
try {
!isMSIE && !/^resource:/.test(url) && pandora.api.log({
!isMSIE && !/^resource:/.test(url) && pandora.api.logError({
text: error,
url: document.location.pathname + ' at ' + url,
line: line

View file

@ -203,7 +203,7 @@ pandora.ui.uploadVideoDialog = function(data) {
that.close();
} else {
$status.html(Ox._('Upload failed.'));
pandora.api.log({
pandora.api.logError({
text: data.responseText,
url: '/' + item,
line: 1
@ -257,7 +257,7 @@ pandora.ui.uploadVideoDialog = function(data) {
that.close();
} else {
$status.html(cancelled ? Ox._('Upload cancelled.') : Ox._('Upload failed.'));
!cancelled && pandora.api.log({
!cancelled && pandora.api.logError({
text: data.responseText,
url: '/' + item,
line: 1