1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 // register the module first
8 Pman.on('beforeload', function()
11 modKey : '001-Pman.Tab.MTrackRepos',
12 module : Pman.Tab.MTrackRepos,
15 name : "unnamed module",
21 Pman.Tab.MTrackRepos = new Roo.util.Observable({
27 add : function(parentLayout, region)
31 this.parentLayout = parentLayout;
33 this.panel = parentLayout.addxtype({
36 title : "mtrack_repos",
39 tableName : 'mtrack_repos',
43 activate : function() {
46 _this.grid.footer.onClick('first');
53 autoExpandColumn : 'shortname',
59 //_this.dialog = Pman.Dialog.FILL_IN
60 if (_this.panel.active) {
61 this.footer.onClick('first');
64 rowdblclick : function (_self, rowIndex, e)
66 if (!_this.dialog) return;
67 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
68 _this.grid.footer.onClick('first');
76 sortInfo : { field : 'shortname', direction: 'ASC' },
81 url : baseURL + '/Roo/mtrack_repos.php'
86 totalProperty : 'total',
107 'name': 'browserurl',
111 'name': 'browsertype',
115 'name': 'description',
127 'name': 'clonedfrom',
131 'name': 'project_id',
138 xtype: 'PagingToolbar',
142 displayMsg : 'Displaying mtrack_repos{0} - {1} of {2}',
143 emptyMsg : 'No mtrack_repos found'
153 cls : 'x-btn-text-icon',
154 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
158 if (!_this.dialog) return;
159 _this.dialog.show( { id : 0 } , function() {
160 _this.grid.footer.onClick('first');
169 cls : 'x-btn-text-icon',
170 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
174 var s = _this.grid.getSelectionModel().getSelections();
175 if (!s.length || (s.length > 1)) {
176 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
179 if (!_this.dialog) return;
180 _this.dialog.show(s[0].data, function() {
181 _this.grid.footer.onClick('first');
191 cls : 'x-btn-text-icon',
192 icon : rootURL + '/Pman/templates/images/trash.gif',
196 Pman.genericDelete(_this, 'mtrack_repos');
204 xtype: 'ColumnModel',
206 dataIndex : 'project_id_name',
209 renderer : function(v) { return String.format('{0}', v); }
212 xtype: 'ColumnModel',
214 header : 'Shortname',
216 dataIndex : 'shortname',
217 renderer : function(v) { return String.format('{0}', v); }
220 xtype: 'ColumnModel',
224 dataIndex : 'scmtype',
225 renderer : function(v) { return String.format('{0}', v); }
228 xtype: 'ColumnModel',
230 dataIndex : 'repopath',
233 renderer : function(v) { return String.format('{0}', v); }
236 xtype: 'ColumnModel',
238 header : 'Description',
240 dataIndex : 'description',
241 renderer : function(v) { return String.format('{0}', v); }
244 xtype: 'ColumnModel',
248 dataIndex : 'parent',
249 renderer : function(v) { return String.format('{0}', v); }
254 this.layout = this.panel.layout;