1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Tab');
7 Pman.Tab.MTrackRepos = new Roo.XComponent({
10 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
11 '9e727fdd3aec8274f46685441900280d' :"Project",
12 '7dce122004969d56ae2e0245cb754d35' :"Edit",
13 '73cdcee8881d309dd256134f98347769' :"Repopath",
14 '30269022e9d8f51beaabb52e5d0de2b7' :"Parent",
15 'de1f88f6f7789baf4d35f2919f100fc3' :"Repositories",
16 '97ec8018c492164da252cbaf95f0fa98' :"Shortname",
17 'a4cf31f8bea7da20524198fbe5c0db2a' :"No mtrack_repos found",
18 'f1c61eb7938469f5aa08964c8b2be862' :"Scmtype",
19 'b5a7adde1af5c87d7fd797b6245c2a39' :"Description",
20 '6c47888cc8867737f167632508b2f58b' :"Displaying mtrack_repos{0} - {1} of {2}"
23 part : ["MTrack", "Repos" ],
24 order : '001-Pman.Tab.MTrackRepos',
26 parent : 'Pman.Tab.MTrack',
27 name : "Pman.Tab.MTrackRepos",
30 _tree : function(_data)
40 tableName : 'mtrack_repos',
41 title : _this._strings['de1f88f6f7789baf4d35f2919f100fc3'] /* Repositories */,
43 activate : function() {
46 _this.grid.footer.onClick('first');
54 autoExpandColumn : 'shortname',
60 _this.dialog = Pman.Dialog.MTrackRepos;
61 if (_this.panel.active) {
62 this.footer.onClick('first');
65 rowdblclick : function (_self, rowIndex, e)
67 if (!_this.dialog) { return; }
68 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
69 _this.grid.footer.onClick('first');
76 xtype : 'PagingToolbar',
78 displayMsg : _this._strings['6c47888cc8867737f167632508b2f58b'] /* Displaying mtrack_repos{0} - {1} of {2} */,
79 emptyMsg : _this._strings['a4cf31f8bea7da20524198fbe5c0db2a'] /* No mtrack_repos found */,
91 cls : 'x-btn-text-icon',
92 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
93 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
97 if (!_this.dialog) { return; }
98 _this.dialog.show( { id : 0 } , function() {
99 _this.grid.footer.onClick('first');
104 '|xns' : 'Roo.Toolbar'
108 cls : 'x-btn-text-icon',
109 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
110 text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
114 var s = _this.grid.getSelectionModel().getSelections();
115 if (!s.length || (s.length > 1)) {
116 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
119 if (!_this.dialog) { return; }
120 _this.dialog.show(s[0].data, function() {
121 _this.grid.footer.onClick('reload');
127 '|xns' : 'Roo.Toolbar'
134 sortInfo : { field : 'shortname', direction: 'ASC' },
140 url : baseURL + '/Roo/mtrack_repos.php',
145 xtype : 'JsonReader',
164 'name': 'browserurl',
168 'name': 'browsertype',
172 'name': 'description',
184 'name': 'clonedfrom',
188 'name': 'project_id',
194 totalProperty : 'total',
201 xtype : 'ColumnModel',
202 dataIndex : 'project_id_name',
203 header : _this._strings['9e727fdd3aec8274f46685441900280d'] /* Project */,
204 renderer : function(v) { return String.format('{0}', v); },
210 xtype : 'ColumnModel',
211 dataIndex : 'shortname',
212 header : _this._strings['97ec8018c492164da252cbaf95f0fa98'] /* Shortname */,
213 renderer : function(v) { return String.format('{0}', v); },
219 xtype : 'ColumnModel',
220 dataIndex : 'scmtype',
221 header : _this._strings['f1c61eb7938469f5aa08964c8b2be862'] /* Scmtype */,
222 renderer : function(v) { return String.format('{0}', v); },
228 xtype : 'ColumnModel',
229 dataIndex : 'repopath',
230 header : _this._strings['73cdcee8881d309dd256134f98347769'] /* Repopath */,
231 renderer : function(v) { return String.format('{0}', v); },
237 xtype : 'ColumnModel',
238 dataIndex : 'description',
239 header : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
240 renderer : function(v) { return String.format('{0}', v); },
246 xtype : 'ColumnModel',
247 dataIndex : 'parent',
248 header : _this._strings['30269022e9d8f51beaabb52e5d0de2b7'] /* Parent */,
249 renderer : function(v) { return String.format('{0}', v); },