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,
14 parent : Pman.Tab.MTrack,
15 name : "Pman.Tab.MTrackRepos",
21 Pman.Tab.MTrackRepos = new Roo.util.Observable({
27 add : function(parentLayout, region)
31 this.parentLayout = parentLayout;
33 this.panel = parentLayout.addxtype({
37 activate : function() {
40 _this.grid.footer.onClick('first');
48 tableName : 'mtrack_repos',
49 title : "Repositories",
57 _this.dialog = Pman.Dialog.MTrackRepos;
58 if (_this.panel.active) {
59 this.footer.onClick('first');
62 rowdblclick : function (_self, rowIndex, e)
64 if (!_this.dialog) return;
65 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
66 _this.grid.footer.onClick('first');
70 autoExpandColumn : 'shortname',
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'
155 if (!_this.dialog) return;
156 _this.dialog.show( { id : 0 } , function() {
157 _this.grid.footer.onClick('first');
161 cls : 'x-btn-text-icon',
163 icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
171 var s = _this.grid.getSelectionModel().getSelections();
172 if (!s.length || (s.length > 1)) {
173 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
176 if (!_this.dialog) return;
177 _this.dialog.show(s[0].data, function() {
178 _this.grid.footer.onClick('reload');
183 cls : 'x-btn-text-icon',
185 icon : Roo.rootURL + 'images/default/tree/leaf.gif'
191 xtype: 'ColumnModel',
193 dataIndex : 'project_id_name',
196 renderer : function(v) { return String.format('{0}', v); }
199 xtype: 'ColumnModel',
201 header : 'Shortname',
203 dataIndex : 'shortname',
204 renderer : function(v) { return String.format('{0}', v); }
207 xtype: 'ColumnModel',
209 dataIndex : 'scmtype',
212 renderer : function(v) { return String.format('{0}', v); }
215 xtype: 'ColumnModel',
217 dataIndex : 'repopath',
220 renderer : function(v) { return String.format('{0}', v); }
223 xtype: 'ColumnModel',
225 header : 'Description',
227 dataIndex : 'description',
228 renderer : function(v) { return String.format('{0}', v); }
231 xtype: 'ColumnModel',
233 dataIndex : 'parent',
236 renderer : function(v) { return String.format('{0}', v); }
241 this.layout = this.panel.layout;