DataObjects/Core_company.php
[Pman.Core] / Pman.Dialog.PersonEditor.js
index 7f98020..b1448d4 100644 (file)
@@ -235,7 +235,7 @@ 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,
@@ -264,7 +264,7 @@ Pman.Dialog.PersonEditor.prototype = {
                         '<b>{name}</b> {address}',
                     '</div>'
                 ),
-                queryParam: 'query[name]',
+                queryParam: 'search[name_starts]',
                 loadingText: "Searching...",
                 listWidth: 400,
                
@@ -518,13 +518,23 @@ Pman.Dialog.PersonEditor.prototype = {
                 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
+                name : 'secure_passowrd',
+                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',