From 6ecb5de6b71f064ccfecfd060028fed63cac4205 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 17:34:09 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 3 +++ Pman.Dialog.CoreAutoSavePreview.js | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index 81ab3f4b..614ce6cf 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -6,6 +6,9 @@ "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs", "items": [ { + "listeners": { + "show": "function (_self)\n{\n if(typeof(_this.data) != 'undefined'){\n _this.grid.footer.onClick('first');\n }\n}" + }, "background": false, "closable": false, "collapsible": false, diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 1164da38..51dcd6a7 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -30,6 +30,14 @@ Pman.Dialog.CoreAutoSavePreview = { this.dialog = Roo.factory({ xtype: 'LayoutDialog', xns: Roo, + listeners : { + show : function (_self) + { + if(typeof(_this.data) != 'undefined'){ + _this.grid.footer.onClick('first'); + } + } + }, background : false, closable : false, collapsible : false, -- 2.39.2