Hi Bob, thanks for reply, its window in manager, here is my shorted window definition (full definition is here
https://github.com/TheBoxer/BookIt/blob/dev/assets/components/bookit/js/mgr/widgets/board.grid.js)
Bookit.window.NewBook = function(config) {
config = config || {};
Ext.applyIf(config,{
id: 'bookit-window-newbook'
,title: _('bookit.newBook')
,closeAction: 'close'
,width: 500
,url: Bookit.config.connectorUrl
,baseParams: {
action: 'mgr/bookit/board/saveBook'
}
,fields: [{
layout:'column'
,border: false
,anchor: '100%'
,defaults: {
labelSeparator: ''
,labelAlign: 'top'
,border: false
,layout: 'form'
,msgTarget: 'under'
}
,items:[{
columnWidth: .7
,items: [{
xtype: 'bookit-extra-userlist-live'
,fieldLabel: _('bookit.fullname')
,name: 'fullname'
,width: 300
,listeners: {
'select': {fn:this.findUser,scope:this}
}
},{
xtype: 'textfield'
,fieldLabel: _('bookit.phone')
,name: 'phone'
,width: 300
},{
xtype: 'textfield'
,fieldLabel: _('email')
,name: 'email'
,width: 300
}]
},{
columnWidth: .3
,items: [{
xtype: 'statictextfield'
,fieldLabel: _('bookit.credit')
,name: 'credit'
},{
xtype: 'statictextfield'
,fieldLabel: _('bookit.warnings')
,name: 'warnings'
},{
xtype: 'statictextfield'
,fieldLabel: _('bookit.debt')
,name: 'debt'
}]
}]
}]
,buttons: [{
text: config.cancelBtnText || _('cancel')
,scope: this
,handler: function() { this.close(); }
},{
text: config.saveBtnText || _('save')
,scope: this
,handler: this.submit
}]
});
Bookit.window.NewBook.superclass.constructor.call(this,config);
};
Ext.extend(Bookit.window.NewBook,MODx.Window);
Ext.reg('bookit-window-newbook',Bookit.window.NewBook);
Values for statixtextfield warnings and some others are filled by newBookWindow.setValues(r.object); called from some ajax request - that's not important...
I tried to post there html code but that didn't work, get same html code on output (like htmlspecialchars was applied).
Again thanks for any help