Pman.Dialog.CoreEnum.bjs
[Pman.Core] / Pman.Dialog.CoreEnum.js
index 12ff62e..a3a6751 100644 (file)
@@ -122,6 +122,10 @@ Pman.Dialog.CoreEnum = {
                       _this.dialog.hide();
                       return;
                   }
+                  
+                  if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){
+                      _this.dialog.setTitle(_this.data.title);
+                  }
             
                   if(_this.data.id){
                       _this.dialog.el.mask("Loading");
@@ -179,10 +183,13 @@ Pman.Dialog.CoreEnum = {
          },
          {
           '|xns' : 'Roo.form',
+          actionMode : 'fieldEl',
+          checked : true,
           fieldLabel : 'Active',
+          hidden : true,
           inputValue : 1,
           name : 'active',
-          value : 0,
+          value : 1,
           valueOff : 0,
           xns : Roo.form,
           xtype : 'Checkbox'
@@ -193,13 +200,6 @@ Pman.Dialog.CoreEnum = {
           xns : Roo.form,
           xtype : 'Hidden'
          },
-         {
-          '|xns' : 'Roo.form',
-          name : 'active',
-          value : 1,
-          xns : Roo.form,
-          xtype : 'Hidden'
-         },
          {
           '|xns' : 'Roo.form',
           name : 'seqid',