1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.BuilderPart = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
37 title : "Edit / Create builder_part",
41 xtype: 'ContentPanel',
49 actioncomplete : function(_self,action)
51 if (action.type == 'setdata') {
53 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
58 if (action.type == 'load') {
62 if (action.type =='submit') {
67 _this.callback.call(_this, _this.form.getValues());
73 rendered : function (form)
79 style : 'margin:10px;',
80 url : baseURL + '/Roo/builder_part.php',
85 fieldLabel : 'Part name',
105 xtype: 'LayoutRegion',
113 click : function (_self, e)
124 click : function (_self, e)
129 _this.form.doAction("submit");