From: Edward Date: Thu, 8 May 2014 09:34:09 +0000 (+0800) Subject: Pman.Dialog.CoreAutoSavePreview.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=6ecb5de6b71f064ccfecfd060028fed63cac4205 Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- 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,