Pman.Dialog.AdminCoreEnum.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 16 Oct 2013 06:49:11 +0000 (14:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 16 Oct 2013 06:49:11 +0000 (14:49 +0800)
Pman.Dialog.AdminCoreEnum.js

Pman.Dialog.AdminCoreEnum.bjs
Pman.Dialog.AdminCoreEnum.js

index 357137e..0330766 100644 (file)
@@ -39,7 +39,7 @@
                         {
                             "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}",
-                                "afteredit": "function (e)\n{\n   (function() {  e.record.commit(); }).defer(100);\n}",
+                                "afteredit": "function (e)\n{\n //  (function() {  e.record.commit(); }).defer(100);\n}",
                                 "cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n\n        var di = this.colModel.getDataIndex(columnIndex);\n        if (di != 'active') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}",
                                 "beforeedit": "function (e)\n{\n    Roo.log('before edit?');\n    Roo.log(e);\n    // force fill in of name first.. (Except when it's hidden)\n    if (typeof(_this.data._hide_name) != 'undefined') { \n        if(e.field == 'display_name' && e.record.data.is_system_enum*1 == 1){\n            return ;\n        }\n \n    }\n    \n    if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n        Roo.log(\"block name?\");\n        return false;\n    }\n}"
                             },
index 7ea6617..63f652a 100644 (file)
@@ -82,7 +82,7 @@ Pman.Dialog.AdminCoreEnum = {
                             },
                             afteredit : function (e)
                             {
-                               (function() {  e.record.commit(); }).defer(100);
+                             //  (function() {  e.record.commit(); }).defer(100);
                             },
                             cellclick : function (_self, rowIndex, columnIndex, e)
                             {