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

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

index 78685e1..f660468 100644 (file)
@@ -41,7 +41,7 @@
                                 "|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}",
                                 "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    \n    // force fill in of name first..\n    if (typeof(_this.data._hide_name) != 'undefined') { \n        if(e.field == 'display_name' && e.record.data.is_system_enum*1 == 1){\n            return true;\n        }\n    }\n    \n    if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n        return false;\n    }\n}"
+                                "beforeedit": "function (e)\n{\n    \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 true;\n        }\n    }\n    \n    if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n        return false;\n    }\n}"
                             },
                             "*prop": "grid",
                             "autoExpandColumn": "display_name",
index 6774796..336caed 100644 (file)
@@ -102,7 +102,7 @@ Pman.Dialog.AdminCoreEnum = {
                             beforeedit : function (e)
                             {
                                 
-                                // force fill in of name first..
+                                // force fill in of name first.. (Except when it's hidden)
                                 if (typeof(_this.data._hide_name) != 'undefined') { 
                                     if(e.field == 'display_name' && e.record.data.is_system_enum*1 == 1){
                                         return true;