height : 400,
modal : true,
shadow : 'true',
- title : "Edit Company",
+ title : "Add / Edit Organization",
width : 750,
items : [
{
if (act.type == 'load') {
_this.data = act.result.data;
- var meth = _this.data.isOwner || !Pman.Login.isOwner() ? 'disable' : 'enable';
+ var meth = _this.data.comptype == 'OWNER' ? 'disable' : 'enable';
if (_this.form.findField('comptype')) {
emptyText : "Select Type",
fieldLabel : 'Type',
forceSelection : true,
- hiddenName : 'comptype',
+ hiddenName : 'comptype_id',
listWidth : 250,
loadingText : "Searching...",
minChars : 2,
}
]
},
- {
- xtype: 'Hidden',
- xns: Roo.form,
- name : 'isOwner'
- },
{
xtype: 'Hidden',
xns: Roo.form,