Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.js
index ddfa37f..9609878 100644 (file)
@@ -46,6 +46,7 @@ Pman.Dialog.CoreAutoSavePreview = {
                         activate : function() {
                             _this.panel = this;
                             if (_this.grid) {
+                            Roo.log(2);
                                 _this.grid.footer.onClick('first');
                             }
                         }
@@ -64,6 +65,7 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 _this.grid = this; 
                                 //_this.dialog = Pman.Dialog.FILL_IN
                                 if (_this.panel.active) {
+                                Roo.log('1');
                                    this.footer.onClick('first');
                                 }
                             }
@@ -78,11 +80,11 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 {
                                     
                                     if (!this.getSelected()) {
-                                        this.viewPanel.setContent("Nothing Selected");
+                                        _this.viewPanel.setContent("Nothing Selected");
                                         return;
                                     }
                                     
-                                    this.viewPanel.setContent("data");
+                                    _this.viewPanel.setContent("data");
                                 }
                             },
                             singleSelect : true
@@ -95,7 +97,8 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 {
                                     Roo.log(_this.data);
                                     o.params = o.parmas || {};
-                                    o.action = 'AUTOSAVE'
+                                    o.params.action = 'AUTOSAVE';
+                                    
                                 }
                             },
                             remoteSort : true,
@@ -228,9 +231,6 @@ Pman.Dialog.CoreAutoSavePreview = {
                         footer : {
                             xtype: 'PagingToolbar',
                             xns: Roo,
-                            displayInfo : true,
-                            displayMsg : "{0} - {1} of {2}",
-                            emptyMsg : "Nothing found",
                             pageSize : 25
                         },
                         colModel : [