Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.js
index 261b141..2249792 100644 (file)
@@ -36,6 +36,7 @@ Pman.Dialog.CoreAutoSavePreview = {
                     if(typeof(_this.data) != 'undefined'){
                         _this.grid.footer.onClick('first');
                     }
+                    
                 }
             },
             background : false,
@@ -87,11 +88,6 @@ Pman.Dialog.CoreAutoSavePreview = {
                                 {
                                     var selected = this.getSelected();
                                     
-                                    if (!selected) {
-                                        _this.viewPanel.setContent("Nothing Selected");
-                                        return;
-                                    }
-                                    
                                     _this.viewPanel.load( { url : baseURL + "/Roo/Events", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){
                                         
                                         _this.source = '';
@@ -134,9 +130,9 @@ Pman.Dialog.CoreAutoSavePreview = {
                                         return false;
                                     }
                                 
-                                    var d = Roo.apply(_this.data);
+                                    var d = Roo.apply({}, _this.data);
                                     delete d.successFn;
-                                    
+                                
                                     Roo.apply(o.params, d);
                                     
                                 }