[FEATURE] Add tstamp column to recycler record table 15/24115/4
authorPhilipp Kitzberger <philipp@cron-it.de>
Fri, 27 Sep 2013 15:47:01 +0000 (17:47 +0200)
committerXavier Perseguers <xavier@typo3.org>
Fri, 27 Sep 2013 21:34:55 +0000 (23:34 +0200)
This adds an extra column to the record table in
the recycler module so users can sort by that
value and come quicker to the decision whether
to recover that record or not.

Resolves: #52324
Releases: 6.2
Change-Id: Ife1d985f517f7ae5e9be419783e1132b532cabef
Reviewed-on: https://review.typo3.org/24115
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/recycler/res/js/t3_recycler.js

index 7784c39..6991479 100644 (file)
@@ -92,7 +92,8 @@ Recycler.TableStore = new Ext.data.Store({
                {name: 'table', type: 'string'},
                {name: 'records', type: 'int'},
                {name: 'valueField', type: 'string'},
-               {name: 'tableTitle', type: 'string'}
+               {name: 'tableTitle', type: 'string'},
+               {name: 'tstamp', type: 'int'}
        ]),
        listeners: {
                'load': {
@@ -347,8 +348,9 @@ Recycler.GridContainer = Ext.extend(Ext.grid.GridPanel, {
                                Recycler.Expander,
                                {header: "UID", width: 10, sortable: true, dataIndex: 'uid'},
                                {header: "PID", width: 10, sortable: true, dataIndex: 'pid'},
-                               {id: 'record', header: TYPO3.l10n.localize('records'), width: 60, sortable: true, dataIndex: 'record', renderer: Recycler.Utility.renderTopic},
-                               {id: 'table', header: TYPO3.l10n.localize('table'), width: 20, sortable: true, dataIndex: 'tableTitle'}
+                               {id: 'record', header: TYPO3.l10n.localize('records'), width: 50, sortable: true, dataIndex: 'record', renderer: Recycler.Utility.renderTopic},
+                               {id: 'table', header: TYPO3.l10n.localize('table'), width: 15, sortable: true, dataIndex: 'tableTitle'},
+                               {id: 'tstamp', header: TYPO3.l10n.localize('tstamp'), width: 15, sortable: true, dataIndex: 'tstamp'}
                        ]),
                        viewConfig: {
                                forceFit: true