},
{
"xtype" : "LayoutRegion",
- "width" : 300,
"$ xns" : "Roo",
+ "width" : 300,
"split" : true,
"* prop" : "east"
},
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n try {\n _this.dialog = Pman.Dialog.CoreProject ; \n } catch(e) {}\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
},
+ "region" : "center",
"fitToframe" : true,
"background" : true,
- "region" : "center",
"title" : "Projects",
"xtype" : "GridPanel",
"fitContainer" : true,
"items" : [
{
"listeners" : {
- "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n",
+ "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n}\n",
"|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
},
"filter" : "P,U",
"* prop" : "dataSource",
"items" : [
{
- "$ url" : "baseURL + '/Roo/Projects.php'",
- "method" : "GET",
+ "$ url" : "baseURL + '/Roo/core_project.php'",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
"toggle" : "function (_self,st)\n{\n if (st) { _this.grid.filter = 'P,N,U'; } \n _this.grid.footer.onClick('first');\n \n}"
},
"text" : "All",
- "enableToggle" : true,
"toggleGroup" : "pgrp",
+ "enableToggle" : true,
"pressed" : false,
"xtype" : "Button",
"$ xns" : "Roo.Toolbar"
"toggle" : "function (_self,st)\n{\n if (st) { _this.grid.filter = 'P,U'; } \n _this.grid.footer.onClick('first');\n \n}"
},
"text" : "Projects",
- "enableToggle" : true,
"toggleGroup" : "pgrp",
+ "enableToggle" : true,
"pressed" : true,
"xtype" : "Button",
"$ xns" : "Roo.Toolbar"
"toggle" : "function (_self,st)\n{\n if (st) { _this.grid.filter = 'N'; } \n _this.grid.footer.onClick('first');\n \n}"
},
"text" : "Non-Projects",
- "enableToggle" : true,
"toggleGroup" : "pgrp",
+ "enableToggle" : true,
"pressed" : false,
"xtype" : "Button",
"$ xns" : "Roo.Toolbar"
"toggle" : "function (_self, st)\n{\n if (st) { _this.grid.filter = 'X,C'; } \n _this.grid.footer.onClick('first');\n \n}"
},
"text" : "Closed",
- "enableToggle" : true,
"toggleGroup" : "pgrp",
+ "enableToggle" : true,
"pressed" : false,
"xtype" : "Button",
"$ xns" : "Roo.Toolbar"
},
{
"xtype" : "ColumnModel",
- "header" : "Client",
"width" : 75,
+ "header" : "Client",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",