From 3c2c10a6b5b68fba8a6816395637bcf8bd2a55ac Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 18:26:43 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 2 +- Pman.Dialog.CoreAutoSavePreview.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index 5c3e84d7..da871372 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -58,7 +58,7 @@ "items": [ { "listeners": { - "afterselectionchange": "function (_self)\n{\n var selected = this.getSelected();\n \n if (!selected) {\n _this.viewPanel.setContent(\"Nothing Selected\");\n return;\n }\n \n _this.viewPanel.load( { url : baseURL + \"/Roo/Events\", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){\n \n var res = Roo.decode(oResponse.responseText);\n \n if(!bSuccess || !res.success){\n _this.viewPanel.setContent(\"Load data failed?!\");\n }\n\n if(typeof(res.data) !== 'string'){\n _this.viewPanel.setContent(res.data);\n return;\n }\n \n _this.source = res.data.POST.source;\n _this.viewPanel.setContent(_this.source);\n \n });\n}" + "afterselectionchange": "function (_self)\n{\n var selected = this.getSelected();\n \n if (!selected) {\n _this.viewPanel.setContent(\"Nothing Selected\");\n return;\n }\n \n _this.viewPanel.load( { url : baseURL + \"/Roo/Events\", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){\n \n var res = Roo.decode(oResponse.responseText);\n \n if(!bSuccess || !res.success){\n _this.viewPanel.setContent(\"Load data failed?!\");\n }\n\n if(typeof(res.data) !== 'string'){\n _this.viewPanel.setContent(res.data);\n return;\n }\n \n _this.source = res.data.POST.source;\n Roo.log(_this.source);\n _this.viewPanel.setContent(_this.source);\n \n });\n}" }, "*prop": "sm", "singleSelect": true, diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index c7c08a21..103f073c 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -110,6 +110,7 @@ Pman.Dialog.CoreAutoSavePreview = { } _this.source = res.data.POST.source; + Roo.log(_this.source); _this.viewPanel.setContent(_this.source); }); -- 2.39.2