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