Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.js
index c8445e1..92d3b1f 100644 (file)
@@ -103,8 +103,15 @@ Pman.Dialog.CoreAutoSavePreview = {
                                         if(!bSuccess || !res.success){
                                             _this.viewPanel.setContent("Load data failed?!");
                                         }
+                                
+                                        if(typeof(res.data) === 'string'){
+                                            _this.viewPanel.setContent(res.data);
+                                            return;
+                                        }
                                         
-                                        Roo.log(res.data);
+                                        _this.source = res.data.POST.source;
+                                
+                                        _this.viewPanel.setContent(_this.source);
                                         
                                     });
                                 }
@@ -213,7 +220,10 @@ Pman.Dialog.CoreAutoSavePreview = {
                     xns: Roo,
                     listeners : {
                         click : function() {
+                        
                             _this.dialog.hide();
+                            
+                        
                         }
                     },
                     text : "OK"