fix
[Pman.Admin] / Pman.Tab.AdminNotify.bjs
index fc3202a..534562a 100644 (file)
                             "|xns": "Roo",
                             "items": [
                                 {
-                                    "|xns": "Roo.form",
-                                    "xtype": "ComboBox",
-                                    "allowBlank": false,
-                                    "editable": false,
-                                    "emptyText": "Select core_notify",
+                                    "allowBlank": true,
+                                    "displayField": "person_id_name",
+                                    "editable": true,
+                                    "emptyText": "Select person",
                                     "forceSelection": true,
+                                    "hiddenName": "id",
                                     "listWidth": 400,
                                     "loadingText": "Searching...",
                                     "minChars": 2,
+                                    "name": "name",
                                     "pageSize": 20,
                                     "qtip": "Select core_notify",
+                                    "queryParam": "query[person_id_name]",
                                     "selectOnFocus": true,
+                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> {person_id_email}</div>",
                                     "triggerAction": "all",
-                                    "typeAhead": true,
+                                    "valueField": "person_id",
                                     "width": 300,
-                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-                                    "queryParam": "",
-                                    "fieldLabel": "core_notify",
-                                    "valueField": "id",
-                                    "displayField": "",
-                                    "hiddenName": "",
-                                    "name": "",
+                                    "xtype": "ComboBox",
+                                    "|xns": "Roo.form",
                                     "items": [
                                         {
+                                            "listeners": {
+                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    o.params._distinct='person_id';\n    o.params._columns='person_id,person_id_name,person_id_email';\n    o.params['!person_id_name'] = '';\n    \n    // set more here\n}\n"
+                                            },
                                             "*prop": "store",
+                                            "remoteSort": true,
                                             "xtype": "Store",
+                                            "|sortInfo": "{ direction : 'ASC', field: 'person_id_name' }",
                                             "|xns": "Roo.data",
-                                            "remoteSort": true,
-                                            "|sortInfo": "{ direction : 'ASC', field: 'id' }",
-                                            "listeners": {
-                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
-                                            },
                                             "items": [
                                                 {
                                                     "*prop": "proxy",