return;
}
var _this = this;
- this.dialog = new Ext.LayoutDialog(Ext.get(document.body).createChild({tag:'div'}),
+ this.dialog = new Roo.LayoutDialog(Roo.get(document.body).createChild({tag:'div'}),
Roo.apply({
autoCreated: true,
title: 'Edit Contact Details',
this.layout.beginUpdate();
- this.form = new Ext.form.Form({
+ this.form = new Roo.form.Form({
labelWidth: 120,
listeners : {
actionfailed : function(f, act) {
this.form.render(ef.dom);
- var vp = this.dialog.getLayout().add('center', new Ext.ContentPanel(ef, {
+ var vp = this.dialog.getLayout().add('center', new Roo.ContentPanel(ef, {
autoCreate : true,
//title: 'Org Details',
//toolbar: this.tb,
url: baseURL + '/Roo/core_company',
method: 'GET'
},
- reader: Pman.Readers.Companies,
+ reader: new Roo.data.JsonReader({}, []), //Pman.Readers.Companies,
listeners : {
beforeload : function(st,o)
{
forceSelection: true,
//mode: 'local',
triggerAction: 'all',
- tpl: new Ext.Template(
+ tpl: new Roo.Template(
'<div class="x-grid-cell-text x-btn button">',
'<b>{name}</b> {address}',
'</div>'
// 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)
{
if (_this.type == 'new') {
data = _this.form.findField('company_id').lastData;
if (!data.id ) {
- Ext.MessageBox.alert("Error", "Select An Company First");
+ Roo.MessageBox.alert("Error", "Select An Company First");
return false
}
beforequery : function (qe) {
var coid = _this.form.findField('company_id').getValue();
if (coid < 1 ) {
- Ext.MessageBox.alert("Error", "Select An Company First");
+ Roo.MessageBox.alert("Error", "Select An Company First");
return false;
}
}
forceSelection: true,
//mode: 'local',
triggerAction: 'all',
- tpl: new Ext.Template(
+ tpl: new Roo.Template(
'<div class="x-grid-cell-text x-btn button">',
'<b>{name}</b> {address}',
'</div>'
},
passwd1 : {
name : 'passwd1',
- fieldLabel : "New Password ???",
+ fieldLabel : "New Password ",
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_passowrd : {
- name : 'secure_passowrd',
+ secure_password : {
+ name : 'secure_password',
fieldLabel : "Secure passwords",
inputValue : 1,
valueOff : 0,
width: 50,
- store: new Ext.data.SimpleStore({
+ store: new Roo.data.SimpleStore({
// load using HTTP
fields: [ 'code', 'desc' ],
data: [[ 'ACTION_REQUIRED', "Yes"] , [ 'NOTIFY', "No"] ]
}
if (this.form.findField('company_id') && !this.form.findField('company_id').getValue()) {
- Ext.MessageBox.alert("Error", "Select a Company");
+ Roo.MessageBox.alert("Error", "Select a Company");
return;
}
var p2 = this.form.findField('passwd2').getValue();
if (this.sendAfterSave && !p1.length) {
- Ext.MessageBox.alert("Error", "You must create a password to send introduction mail");
+ Roo.MessageBox.alert("Error", "You must create a password to send introduction mail");
return;
}
if (Pman.Login.authUser.id < 0 && !p1.length) {
- Ext.MessageBox.alert("Error", "You must create a password for the admin account");
+ Roo.MessageBox.alert("Error", "You must create a password for the admin account");
return;
}
if (p1.length || p2.length) {
if (p1 != p2) {
- Ext.MessageBox.alert("Error", "Passwords do not match");
+ Roo.MessageBox.alert("Error", "Passwords do not match");
return;
}
}