this.callback = cb;
this.data = data;
- this.dialog.show(this.data._el);
+ this.dialog.show.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2));
if (this.form) {
this.form.reset();
this.form.setValues(data);
closable : false,
collapsible : false,
height : 450,
+ modal : true,
resizable : false,
title : _this._strings['ddb016a244ff2b895e69d25fb3b5f780'] /* Edit / Create Projects */,
width : 470,
xtype : 'Form',
method : 'POST',
style : 'margin:10px;',
- url : baseURL + '/Roo/Projects.php',
+ url : baseURL + '/Roo/core_project',
listeners : {
actioncomplete : function(_self,action)
{
if (action.type == 'setdata') {
//_this.dialog.el.mask("Loading");
- //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+ if (_this.data.id) {
+ this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+ }
return;
}
if (action.type == 'load') {
- _this.dialog.el.unmask();
+
return;
}
if (action.type =='submit') {
- _this.dialog.el.unmask();
+
_this.dialog.hide();
if (_this.callback) {
proxy : {
xtype : 'HttpProxy',
method : 'GET',
- url : baseURL + '/Roo/Groups.php',
+ url : baseURL + '/Roo/core_group',
xns : Roo.data,
'|xns' : 'Roo.data'
},