From: Alan Knowles Date: Wed, 28 Sep 2011 08:31:24 +0000 (+0800) Subject: Pman.Dialog.AdminWatch.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=2dd49bed927acf165c88a6eb6f343a1668e1a2ca Pman.Dialog.AdminWatch.bjs Pman.Dialog.AdminWatch.bjs Pman.Dialog.AdminWatch.js Pman.Dialog.AdminWatch.js --- diff --git a/Pman.Dialog.AdminWatch.bjs b/Pman.Dialog.AdminWatch.bjs index e3f6978..0f6df26 100644 --- a/Pman.Dialog.AdminWatch.bjs +++ b/Pman.Dialog.AdminWatch.bjs @@ -101,28 +101,28 @@ "|xns": "Roo.form" }, { - "|xns": "Roo.form", - "xtype": "ComboBox", "allowBlank": "false", + "displayField": "name", "editable": "false", "emptyText": "Select Person", + "fieldLabel": "Notify Who", "forceSelection": true, + "hiddenName": "person_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, + "name": "person_id_name", "pageSize": 20, "qtip": "Select Person", + "queryParam": "query[name]", "selectOnFocus": true, + "tpl": "
{name}
", "triggerAction": "all", "typeAhead": true, - "width": 300, - "tpl": "
{name}
", - "queryParam": "query[name]", - "fieldLabel": "Person", "valueField": "id", - "displayField": "name", - "hiddenName": "person_id", - "name": "person_id_name", + "width": 300, + "xtype": "ComboBox", + "|xns": "Roo.form", "items": [ { "*prop": "store", diff --git a/Pman.Dialog.AdminWatch.js b/Pman.Dialog.AdminWatch.js index f366522..822d3b6 100644 --- a/Pman.Dialog.AdminWatch.js +++ b/Pman.Dialog.AdminWatch.js @@ -264,25 +264,25 @@ Pman.Dialog.AdminWatch = { xtype: 'ComboBox', xns: Roo.form, allowBlank : 'false', + displayField : 'name', editable : 'false', emptyText : "Select Person", + fieldLabel : 'Notify Who', forceSelection : true, + hiddenName : 'person_id', listWidth : 400, loadingText : "Searching...", minChars : 2, + name : 'person_id_name', pageSize : 20, qtip : "Select Person", + queryParam : 'query[name]', selectOnFocus : true, + tpl : '
{name}
', triggerAction : 'all', typeAhead : true, - width : 300, - tpl : '
{name}
', - queryParam : 'query[name]', - fieldLabel : 'Person', valueField : 'id', - displayField : 'name', - hiddenName : 'person_id', - name : 'person_id_name', + width : 300, store : { xtype: 'Store', xns: Roo.data,