Pman.Dialog.BAdminAddToGroup.bjs
authoredward <edward@roojs.com>
Tue, 10 Oct 2017 11:33:37 +0000 (19:33 +0800)
committeredward <edward@roojs.com>
Tue, 10 Oct 2017 11:33:37 +0000 (19:33 +0800)
Pman.Dialog.BAdminAddToGroup.js

Pman.Dialog.BAdminAddToGroup.bjs
Pman.Dialog.BAdminAddToGroup.js

index 984c101..7ae24f8 100644 (file)
@@ -30,9 +30,6 @@
      "$ xns" : "Roo.bootstrap",
      "items" : [
       {
-       "listeners" : {
-        "render" : "function (_self)\n{\n   _this.employ_plan = this;\n\n}"
-       },
        "Number pageSize" : 25,
        "Boolean allowBlank" : false,
        "Number minChars" : 2,
@@ -48,7 +45,7 @@
        "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{display_name_t}</b></div>",
        "String fieldLabel" : "How would you describe your career plans",
        "String hiddenName" : "employ_plan",
-       "String displayField" : "display_name_t",
+       "String displayField" : "name",
        "items" : [
         {
          "listeners" : {
@@ -69,8 +66,8 @@
           },
           {
            "xtype" : "JsonReader",
-           "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_name',\n        'type': 'string'    \n    },\n    {\n        'name': 'display_name_t',\n        'type': 'string'    \n    }\n]",
            "$ xns" : "Roo.data",
+           "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_name',\n        'type': 'string'    \n    },\n    {\n        'name': 'display_name_t',\n        'type': 'string'    \n    }\n]",
            "* prop" : "reader"
           }
          ]
index 622037c..f78896a 100644 (file)
@@ -162,7 +162,7 @@ Roo.apply(Pman.Dialog.BAdminAddToGroup.prototype, {
         xtype : 'ComboBox',
         allowBlank : false,
         alwaysQuery : true,
-        displayField : 'display_name_t',
+        displayField : 'name',
         editable : false,
         fieldLabel : _this._strings['9bb1eb7617eec79c8a2e5866ba6132d9'] /* How would you describe your career plans */,
         hiddenName : 'employ_plan',
@@ -174,13 +174,6 @@ Roo.apply(Pman.Dialog.BAdminAddToGroup.prototype, {
         triggerAction : 'all',
         typeAhead : true,
         valueField : 'name',
-        listeners : {
-         render : function (_self)
-          {
-             _this.employ_plan = this;
-          
-          }
-        },
         xns : Roo.bootstrap,
         '|xns' : 'Roo.bootstrap',
         store : {