DataObjects/core.sql
[Pman.Core] / Pman.Dialog.CoreEnum.js
index 4b15367..9897e40 100644 (file)
@@ -99,17 +99,23 @@ Pman.Dialog.CoreEnum = {
                                 {
                                     xtype: 'TextField',
                                     xns: Roo.form,
+                                    actionMode : 'fieldEl',
                                     allowBlank : false,
                                     fieldLabel : 'Name',
+                                    hidden : true,
                                     name : 'name',
-                                    width : 200,
-                                    hidden : function() {
-                                        
-                                    }
+                                    width : 200
                                 },
                                 {
                                     xtype: 'TextField',
                                     xns: Roo.form,
+                                    listeners : {
+                                        keyup : function (_self, e)
+                                        {
+                                            _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());
+                                            
+                                        }
+                                    },
                                     allowBlank : false,
                                     fieldLabel : 'Display Name',
                                     name : 'display_name',