Pman.Download.js
[Pman.Core] / Pman.Dialog.CoreColumnConfig.js
index c693073..9e9cbed 100644 (file)
@@ -8,18 +8,14 @@ Pman.Dialog.CoreColumnConfig = {
 
  _strings : {
   'cfcd208495d565ef66e7dff9f98764da' :"0",
-  'b48968e1c912da07df5e8d6d246291ec' :"Display Name",
-  'c4ca4238a0b923820dcc509a6f75849b' :"1",
   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
-  '135d0838bf9429a58dc388369036be2c' :"Add / Edit Column Configuration",
-  '4d3d769b812b6faa6b76e1a8abaece2d' :"Active",
-  'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
+  'c40cab5f875bb6c270d800eff77a4af0' :"Save Column Configuration",
+  'b5a7adde1af5c87d7fd797b6245c2a39' :"Description",
+  'c9cc8cce247e49bae79f15173ce97354' :"Save"
  },
  _named_strings : {
-  'display_name_fieldLabel' : 'b48968e1c912da07df5e8d6d246291ec' /* Display Name */ ,
-  'seqid_value' : 'cfcd208495d565ef66e7dff9f98764da' /* 0 */ ,
-  'active_fieldLabel' : '4d3d769b812b6faa6b76e1a8abaece2d' /* Active */ ,
-  'active_value' : 'c4ca4238a0b923820dcc509a6f75849b' /* 1 */ 
+  'description_fieldLabel' : 'b5a7adde1af5c87d7fd797b6245c2a39' /* Description */ ,
+  'name_value' : 'cfcd208495d565ef66e7dff9f98764da' /* 0 */ 
  },
 
  dialog : false,
@@ -50,10 +46,10 @@ Pman.Dialog.CoreColumnConfig = {
     background : true,
     closable : false,
     collapsible : false,
-    height : 150,
+    height : 110,
     modal : true,
     resizable : false,
-    title : _this._strings['135d0838bf9429a58dc388369036be2c'] /* Add / Edit Column Configuration */,
+    title : _this._strings['c40cab5f875bb6c270d800eff77a4af0'] /* Save Column Configuration */,
     width : 400,
     listeners : {
      show : function (_self)
@@ -84,18 +80,11 @@ Pman.Dialog.CoreColumnConfig = {
      },
      {
       xtype : 'Button',
-      text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
+      text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
       listeners : {
        click : function() {
         
-            var name =     _this.form.findField('name').getValue();
-            name = name.toUpperCase().replace(/[^A-Z]+/g, '');
-            if (!name.length) {
-                Roo.MessageBox.alert("Error","Please fill in a valid name");
-                return;
-            }
-            _this.form.findField('name').setValue(name);
-         
+             
             _this.form.doAction('submit');
             
         }
@@ -116,7 +105,7 @@ Pman.Dialog.CoreColumnConfig = {
        {
         xtype : 'Form',
         method : 'POST',
-        style : 'margin: 5px',
+        style : 'padding:5px',
         url : baseURL + '/Roo/core_setting',
         listeners : {
          actioncomplete : function (_self, action)
@@ -161,41 +150,27 @@ Pman.Dialog.CoreColumnConfig = {
          {
           xtype : 'TextField',
           allowBlank : false,
-          fieldLabel : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
-          name : 'display_name',
+          fieldLabel : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
+          name : 'description',
           width : 250,
-          listeners : {
-           keyup : function (_self, e)
-            {
-                _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());
-                
-            }
-          },
           xns : Roo.form,
           '|xns' : 'Roo.form'
          },
          {
-          xtype : 'Checkbox',
-          actionMode : 'fieldEl',
-          checked : true,
-          fieldLabel : _this._strings['4d3d769b812b6faa6b76e1a8abaece2d'] /* Active */,
-          hidden : true,
-          inputValue : 1,
-          name : 'active',
-          value : 1,
-          valueOff : 0,
+          xtype : 'Hidden',
+          name : 'module',
           xns : Roo.form,
           '|xns' : 'Roo.form'
          },
          {
           xtype : 'Hidden',
-          name : 'etype',
+          name : 'val',
           xns : Roo.form,
           '|xns' : 'Roo.form'
          },
          {
           xtype : 'Hidden',
-          name : 'seqid',
+          name : 'name',
           value : 0,
           xns : Roo.form,
           '|xns' : 'Roo.form'