From bdaf477a38e9b269b47b8c17eb47d247233679d9 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 12:19:42 +0000 Subject: [PATCH] update changelog dialog --- static/js/changelogDialog.js | 53 ++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/static/js/changelogDialog.js b/static/js/changelogDialog.js index 01f6a076a..f97ecd4da 100644 --- a/static/js/changelogDialog.js +++ b/static/js/changelogDialog.js @@ -73,17 +73,6 @@ pandora.ui.changelogDialog = function() { visible: false }, { - format: function(value) { - return Ox.encodeHTMLEntities(value); - }, - id: 'user', - operator: '+', - title: Ox._('User'), - visible: true, - width: 72 - }, - { - align: 'right', format: function(value) { return Ox.formatDate(value, "%Y-%m-%d %H:%M:%S"); }, @@ -91,23 +80,40 @@ pandora.ui.changelogDialog = function() { operator: '-', title: Ox._('Date'), visible: true, - width: 144 - }, - { - format: function(value, data) { - return formatURL(value, data.line); - }, - id: 'changeid', - operator: '+', - title: Ox._('ID'), - visible: true, - width: 320 + width: 160 }, { format: function(value) { return Ox.encodeHTMLEntities(value); }, - id: 'text', + id: 'user', + operator: '+', + title: Ox._('User'), + visible: true, + width: 160 + }, + { + id: 'action', + operator: '+', + title: Ox._('Action'), + visible: true, + width: 160 + }, + { + format: function(value, data) { + return value; // FIXME: TODO + }, + id: 'changeid', + operator: '+', + title: Ox._('ID'), + visible: true, + width: 80 + }, + { + format: function(value) { + return Ox.encodeHTMLEntities(JSON.stringify(value)); + }, + id: 'data', operator: '+', title: Ox._('Data'), visible: true, @@ -118,7 +124,6 @@ pandora.ui.changelogDialog = function() { columnsResizable: true, columnsVisible: true, items: pandora.api.findChangeLogs, - keys: ['line'], scrollbarVisible: true, sort: [{key: 'created', operator: '-'}], unique: 'id'