Pman.Dialog.CoreNotifyRefer.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 08:10:58 +0000 (16:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 16 May 2012 08:10:58 +0000 (16:10 +0800)
Pman.Dialog.CoreNotifyRefer.js

Pman.Dialog.CoreNotifyRefer.bjs
Pman.Dialog.CoreNotifyRefer.js

index cf2d3c6..263c3bc 100644 (file)
@@ -37,7 +37,8 @@
                         {
                             "listeners": {
                                 "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
+                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
+                                "afteredit": "function (e)\n{\n   e.record.commit();\n}"
                             },
                             "*prop": "grid",
                             "autoExpandColumn": "freq_day",
index 871bdd5..2cc06b9 100644 (file)
@@ -71,6 +71,10 @@ Pman.Dialog.CoreNotifyRefer = {
                                 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
                                     _this.grid.footer.onClick('first');
                                 }); 
+                            },
+                            afteredit : function (e)
+                            {
+                               e.record.commit();
                             }
                         },
                         autoExpandColumn : 'freq_day',