Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.js
index 3c727bc..ed60c0c 100644 (file)
@@ -68,7 +68,7 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 }
                             }
                         },
-                        autoExpandColumn : 'remarks',
+                        autoExpandColumn : 'event_when',
                         loadMask : true,
                         sm : {
                             xtype: 'RowSelectionModel',
@@ -76,14 +76,13 @@ Pman.Dialog.CoreAutoSavePreview = {
                             listeners : {
                                 afterselectionchange : function (_self)
                                 {
-                                    // load detail log in _this.viewPanel;
+                                    
                                     if (!this.getSelected()) {
-                                        this.viewPanel.setContent("Nothing Selected");
+                                        _this.viewPanel.setContent("Nothing Selected");
                                         return;
                                     }
-                                    var id = this.getSelected().data.id;
-                                    _this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
                                     
+                                    _this.viewPanel.setContent("data");
                                 }
                             },
                             singleSelect : true
@@ -96,7 +95,8 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 {
                                     Roo.log(_this.data);
                                     o.params = o.parmas || {};
-                                    o.action = 'AUTOSAVE'
+                                    o.action = 'AUTOSAVE';
+                                    
                                 }
                             },
                             remoteSort : true,
@@ -242,31 +242,34 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 header : 'Date',
                                 width : 100,
                                 renderer : function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'on_table',
-                                header : 'Affected',
-                                width : 100,
-                                renderer : function(v) {                     
-                                    return String.format('{0})', v ? v : '');  
-                                }
                             }
                         ]
                     }
+                },
+                {
+                    xtype: 'ContentPanel',
+                    xns: Roo,
+                    listeners : {
+                        render : function (_self)
+                        {
+                            _this.viewPanel = _self;
+                        }
+                    },
+                    background : false,
+                    fitContainer : true,
+                    fitToFrame : true,
+                    region : 'center'
                 }
             ],
             center : {
                 xtype: 'LayoutRegion',
-                xns: Roo,
-                titlebar : false
+                xns: Roo
             },
             west : {
                 xtype: 'LayoutRegion',
                 xns: Roo,
                 split : true,
-                width : 300
+                width : 200
             },
             buttons : [
                 {