From 06d690f553d010dca8f0c3c9e827ba74fc3150fc Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 18:34:49 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 2 +- Pman.Dialog.CoreAutoSavePreview.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index 8cf0e647..93011340 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -48,7 +48,7 @@ { "listeners": { "|render": "function() \n{\n _this.grid = this; \n \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}", - "|rowdblclick": "function (_self, rowIndex, e)\n{\n\n}\n" + "|rowdblclick": "function (_self, rowIndex, e)\n{\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(this, _this.source);\n }\n}\n" }, "*prop": "grid", "autoExpandColumn": "filename", diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 7e082ea5..6a6c0d25 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -78,7 +78,11 @@ Pman.Dialog.CoreAutoSavePreview = { }, rowdblclick : function (_self, rowIndex, e) { - + _this.dialog.hide(); + + if (_this.callback) { + _this.callback.call(this, _this.source); + } } }, autoExpandColumn : 'filename', -- 2.39.2