Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.js
index d26f315..c8445e1 100644 (file)
@@ -95,8 +95,18 @@ Pman.Dialog.CoreAutoSavePreview = {
                                         _this.viewPanel.setContent("Nothing Selected");
                                         return;
                                     }
-                                    Roo.log(selected);
-                                    _this.viewPanel.load( { url : baseURL + "/Roo/Events", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1});
+                                    
+                                    _this.viewPanel.load( { url : baseURL + "/Roo/Events", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){
+                                        
+                                        var res = Roo.decode(oResponse.responseText);
+                                        
+                                        if(!bSuccess || !res.success){
+                                            _this.viewPanel.setContent("Load data failed?!");
+                                        }
+                                        
+                                        Roo.log(res.data);
+                                        
+                                    });
                                 }
                             },
                             singleSelect : true