X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.PersonEditor.js;h=2cee8c0bdb0128f4b10d54538dad8ab263615efa;hp=7f980206b1379c65d2b2318a806de3226cb5babd;hb=refs%2Fheads%2Fwip_edward_T5851_download_old_offer_sheet;hpb=38209ca1f3542e3f104c7eff1ef9393596e98cd4 diff --git a/Pman.Dialog.PersonEditor.js b/Pman.Dialog.PersonEditor.js index 7f980206..2cee8c0b 100644 --- a/Pman.Dialog.PersonEditor.js +++ b/Pman.Dialog.PersonEditor.js @@ -235,10 +235,10 @@ Pman.Dialog.PersonEditor.prototype = { // 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) { @@ -264,7 +264,7 @@ Pman.Dialog.PersonEditor.prototype = { '{name} {address}', '' ), - queryParam: 'query[name]', + queryParam: 'search[name_starts]', loadingText: "Searching...", listWidth: 400, @@ -308,10 +308,10 @@ Pman.Dialog.PersonEditor.prototype = { // 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) { @@ -517,14 +517,24 @@ Pman.Dialog.PersonEditor.prototype = { xtype : 'TextField', width : 220 }, - secure_passowrd : { - name : 'passwd2', - fieldLabel : "Password (type again to confirm)", - value : '', - allowBlank : true, // must be filled in as we rely on it for login details.. - inputType: 'password', // << if comment out this input type, it should be ok - xtype : 'TextField', - width : 220 + secure_password : { + name : 'secure_password', + fieldLabel : "Secure passwords", + inputValue : 1, + valueOff : 0, + checked : true, + xtype : 'Checkbox', + xns : Roo.form, + width : 220, + listeners : { + check : function (_self, checked) { + this.form.findField('passwd1').insecure = false; + + if(!checked){ + this.form.findField('passwd1').insecure = true; + } + } + } }, project_id_fs : { xtype : 'FieldSetEx', @@ -643,7 +653,7 @@ Pman.Dialog.PersonEditor.prototype = { } 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 , @@ -666,7 +676,7 @@ Pman.Dialog.PersonEditor.prototype = { 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 ,