// load using HTTP
proxy:{
xtype: 'HttpProxy',
- url: baseURL + '/Roo/Companies.html',
+ url: baseURL + '/Roo/core_company',
method: 'GET'
},
- reader: Pman.Readers.Companies,
+ reader: new Roo.data.JsonReader({}, []), //Pman.Readers.Companies,
listeners : {
beforeload : function(st,o)
{
'<b>{name}</b> {address}',
'</div>'
),
- queryParam: 'query[name]',
+ queryParam: 'search[name_starts]',
loadingText: "Searching...",
listWidth: 400,
// load using HTTP
proxy: {
xtype : 'HttpProxy',
- url: baseURL + '/Roo/Office.html',
+ url: baseURL + '/Roo/Core_office.html',
method: 'GET'
},
- reader: Pman.Readers.Office,
+ reader: new Roo.data.JsonReader({}, []), //Pman.Readers.Office,
listeners : {
beforeload : function(st,o)
{
xtype : 'TextField',
width : 220
},
- secure_passowrd : {
- name : 'secure_passowrd',
+ secure_password : {
+ name : 'secure_password',
fieldLabel : "Secure passwords",
inputValue : 1,
valueOff : 0,
width : 220,
listeners : {
check : function (_self, checked) {
- Roo.log(this.form);
- if(checked){
-
+ this.form.findField('passwd1').insecure = false;
+
+ if(!checked){
+ this.form.findField('passwd1').insecure = true;
}
}
}
}
this.dialog.el.mask("Sending");
this.form.doAction('submit', {
- url: baseURL + '/Roo/Person.html',
+ url: baseURL + '/Roo/core_person',
method: 'POST',
params: {
_id: this._id ,
this.dialog.show();
this.dialog.el.mask("Loading");
this.form.doAction('load', {
- url: baseURL + '/Roo/Person.html',
+ url: baseURL + '/Roo/core_person',
method: 'GET',
params: {
_id: this._id ,