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 : '400-Pman.Tab.MTrackMerger',
12 module : Pman.Tab.MTrackMerger,
14 parent : Pman.Tab.MTrack,
15 name : "Pman.Tab.MTrackMerger",
21 Pman.Tab.MTrackMerger = new Roo.util.Observable({
27 add : function(parentLayout, region)
31 this.parentLayout = parentLayout;
33 this.panel = parentLayout.addxtype({
34 xtype: 'NestedLayoutPanel',
39 xtype: 'BorderLayout',
54 baseParams : '{ _tree : 1 }',
55 requestMethod : 'GET',
57 dataUrl : rootURL + '/MTrack/Merger'
72 tableName : 'core_enum',
76 activate : function() {
79 _this.grid.footer.onClick('first');
86 autoExpandColumn : 'etype',
92 //_this.dialog = Pman.Dialog.FILL_IN
93 if (_this.panel.active) {
94 this.footer.onClick('first');
97 rowdblclick : function (_self, rowIndex, e)
99 if (!_this.dialog) return;
100 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
101 _this.grid.footer.onClick('first');
109 sortInfo : { field : 'etype', direction: 'ASC' },
114 url : baseURL + '/Roo/core_enum.php'
119 totalProperty : 'total',
147 xtype: 'PagingToolbar',
151 displayMsg : "Displaying core_enum{0} - {1} of {2}",
152 emptyMsg : "No core_enum found"
167 cls : 'x-btn-text-icon',
168 text : "Create Commit",
169 icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
175 cls : 'x-btn-text-icon',
176 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
180 var s = _this.grid.getSelectionModel().getSelections();
181 if (!s.length || (s.length > 1)) {
182 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
185 if (!_this.dialog) return;
186 _this.dialog.show(s[0].data, function() {
187 _this.grid.footer.onClick('first');
197 cls : 'x-btn-text-icon',
198 icon : rootURL + '/Pman/templates/images/trash.gif',
202 Pman.genericDelete(_this, 'core_enum');
210 xtype: 'ColumnModel',
215 renderer : function(v) { return String.format('{0}', v); }
218 xtype: 'ColumnModel',
223 renderer : function(v) { return String.format('{0}', v); }
226 xtype: 'ColumnModel',
230 dataIndex : 'active',
231 renderer : function(v) { return String.format('{0}', v); }
234 xtype: 'ColumnModel',
239 renderer : function(v) { return String.format('{0}', v); }
246 xtype: 'LayoutRegion',
251 xtype: 'LayoutRegion',
255 xtype: 'LayoutRegion',
260 this.layout = this.panel.layout;