From: Edward Date: Thu, 8 May 2014 09:28:23 +0000 (+0800) Subject: Pman.Dialog.CoreAutoSavePreview.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=076ed4e21c8ac4fc58dfb02844c9b9385bf73786 Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index c38e5611..1d6610d9 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -88,13 +88,13 @@ "|xns": "Roo" }, { - "xtype": "ColumnModel", + "*prop": "colModel[]", + "dataIndex": "event_when", "header": "Created", "width": 75, - "dataIndex": "created", + "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }", - "|xns": "Roo.grid", - "*prop": "colModel[]" + "|xns": "Roo.grid" } ] } diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 8b669906..fd1626b8 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -119,9 +119,9 @@ Pman.Dialog.CoreAutoSavePreview = { { xtype: 'ColumnModel', xns: Roo.grid, + dataIndex : 'event_when', header : 'Created', width : 75, - dataIndex : 'created', renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); } } ]