Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 10:34:49 +0000 (18:34 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 10:34:49 +0000 (18:34 +0800)
Pman.Dialog.CoreAutoSavePreview.js

Pman.Dialog.CoreAutoSavePreview.bjs
Pman.Dialog.CoreAutoSavePreview.js

index 8cf0e64..9301134 100644 (file)
@@ -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",
index 7e082ea..6a6c0d2 100644 (file)
@@ -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',