1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 MTrackWeb.Layout = new Roo.XComponent({
6 order : '001-MTrackWeb.Layout',
9 name : "unnamed module",
16 xtype: 'NestedLayoutPanel',
19 xtype: 'BorderLayout',
23 xtype: 'ContentPanel',
26 content : '<div class="banner-username"></div>' +
28 '<a href="' + rootURL + '"><img style="float: left;margin-right: 10px;" src="' +
29 rootURL + '/Roojscom/templates/images/roojsorg_logo-55.png" width="150" height="55"></a>' +
30 '<div class="banner-title">Project Tracker</div>'+
34 xtype: 'ContentPanel',
41 xtype: 'LayoutRegion',
47 xtype: 'LayoutRegion',
49 alwaysShowTabs : true,
68 beforeselect : function (combo, record, index)
70 // this should post to the system, - to register active Project..
71 // it's not really needed in new version... but done for compat.
75 url : baseURL + '/Projects/' + rec.data.id,
76 success : function (data) {
77 // then, it should refresh the current active tab..
78 MTrack.ajaxLoad( MTrack.currentURL);
83 render : function (_self)
87 MTrack.projectCombo = _self;
89 // set the default value to our current project..
98 displayField : 'name',
100 emptyText : "Select Project",
101 forceSelection : true,
103 loadingText : "Searching...",
105 qtip : "Select Project",
106 selectOnFocus : true,
107 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> {name} </div>',
108 triggerAction : 'all',
116 beforeload : function (_self, o){
117 o.params = o.params || {};
122 sortInfo : { direction : 'ASC', field: 'name' },
127 url : baseURL + '/Projects.php'
134 totalProperty : 'total',
135 fields : [{"name":"id","type":"int"},"name","code"]
143 specialkey : function (_self, e)
145 if (e.getKey() == 13) {
150 emptyText : "Search (to be done..)",
157 icon : rootURL + '/Pman/templates/images/search.gif'
163 xtype: 'LayoutRegion',