1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.MTrackRepos = {
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 mtrack_repos",
41 xtype: 'ContentPanel',
49 actioncomplete : function(_self,action)
51 if (action.type == 'setdata') {
52 //_this.dialog.el.mask("Loading");
53 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
56 if (action.type == 'load') {
57 _this.dialog.el.unmask();
60 if (action.type =='submit') {
62 _this.dialog.el.unmask();
66 _this.callback.call(_this, _this.form.getValues());
72 rendered : function (form)
78 style : 'margin:10px;',
79 url : baseURL + '/Roo/mtrack_repos.php',
84 fieldLabel : 'Shortname',
91 fieldLabel : 'Scmtype',
98 fieldLabel : 'Repopath',
105 fieldLabel : 'Browserurl',
112 fieldLabel : 'Browsertype',
113 name : 'browsertype',
119 fieldLabel : 'Description',
120 name : 'description',
127 fieldLabel : 'Serverurl',
134 fieldLabel : 'Parent',
141 fieldLabel : 'Clonedfrom',
149 displayField : 'name',
151 emptyText : "Select Projects",
152 fieldLabel : 'Projects',
153 forceSelection : false,
154 hiddenName : 'project_id',
156 loadingText : "Searching...",
158 name : 'project_id_name',
160 qtip : "Select Projects",
161 queryParam : 'query[name]',
162 selectOnFocus : true,
163 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b>{name} </div>',
164 triggerAction : 'all',
172 sortInfo : { direction : 'ASC', field: 'id' },
174 beforeload : function (_self, o){
175 o.params = o.params || {};
183 url : baseURL + '/Roo/Projects.php'
190 totalProperty : 'total',
191 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
206 xtype: 'LayoutRegion',
214 click : function (_self, e)
225 click : function (_self, e)
230 _this.dialog.el.mask("Saving");
231 _this.form.doAction("submit");