From 3f52be78ca14533b2b98fcd17e91970757b6d8b7 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 16 Dec 2014 14:04:42 +0000 Subject: [PATCH] update changelogDialog --- static/js/changelogDialog.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/static/js/changelogDialog.js b/static/js/changelogDialog.js index 7e93810dc..01f6a076a 100644 --- a/static/js/changelogDialog.js +++ b/static/js/changelogDialog.js @@ -17,7 +17,7 @@ pandora.ui.changelogDialog = function() { .bindEvent({ click: function() { $reloadButton.options({disabled: true}); - Ox.Request.clearCache('FIXME'); + Ox.Request.clearCache('findChangeLogs'); $list.reloadList(true); } }), @@ -117,7 +117,7 @@ pandora.ui.changelogDialog = function() { columnsMovable: true, columnsResizable: true, columnsVisible: true, - items: pandora.api.findErrorLogs, + items: pandora.api.findChangeLogs, keys: ['line'], scrollbarVisible: true, sort: [{key: 'created', operator: '-'}], @@ -129,12 +129,6 @@ pandora.ui.changelogDialog = function() { 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() { $reloadButton.options({disabled: false}); }, @@ -198,7 +192,7 @@ pandora.ui.changelogDialog = function() { minWidth: 512, padding: 0, removeOnClose: true, - title: Ox._('Error Logs'), + title: Ox._('Changelog'), width: width }), @@ -217,7 +211,7 @@ pandora.ui.changelogDialog = function() { that.superClose = that.close; that.close = function() { - Ox.Request.clearCache('FIXME'); + Ox.Request.clearCache('findChangeLogs'); that.superClose(); }; @@ -244,7 +238,7 @@ pandora.ui.changelogDialog = function() { }; $list.options({ items: function(data, callback) { - return pandora.api.FIXME(Ox.extend(data, { + return pandora.api.findChangeLogs(Ox.extend(data, { query: query }), callback); }