1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.CmsCategoryType = new Roo.XComponent({
6 part : ["Cms","CategoryType"],
7 order : '001-Pman.Tab.CmsCategoryType',
9 parent : 'Pman.Tab.Cms',
10 name : "Pman.Tab.CmsCategoryType",
21 activate : function() {
24 _this.grid.footer.onClick('first');
33 tableName : 'cms_category_type',
34 title : "Category Types",
42 _this.dialog = Pman.Dialog.CmsCategoryType;
43 if (_this.panel.active) {
44 this.footer.onClick('first');
47 rowdblclick : function (_self, rowIndex, e)
49 if (!_this.dialog) return;
50 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
51 _this.grid.footer.onClick('first');
55 autoExpandColumn : 'name',
61 sortInfo : { field : 'name', direction: 'ASC' },
66 url : baseURL + '/Roo/cms_category_type.php'
71 totalProperty : 'total',
87 xtype: 'PagingToolbar',
91 displayMsg : "Displaying cms_category_type{0} - {1} of {2}",
92 emptyMsg : "No cms_category_type found"
106 cls : 'x-btn-text-icon',
107 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
111 if (!_this.dialog) return;
112 _this.dialog.show( { id : 0 } , function() {
113 _this.grid.footer.onClick('first');
124 var s = _this.grid.getSelectionModel().getSelections();
125 if (!s.length || (s.length > 1)) {
126 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
129 if (!_this.dialog) return;
130 _this.dialog.show(s[0].data, function() {
131 _this.grid.footer.onClick('first');
136 cls : 'x-btn-text-icon',
138 icon : Roo.rootURL + 'images/default/tree/leaf.gif'
144 cls : 'x-btn-text-icon',
145 icon : rootURL + '/Pman/templates/images/trash.gif',
149 Pman.genericDelete(_this, 'cms_category_type');
157 xtype: 'ColumnModel',
162 renderer : function(v) { return String.format('{0}', v); }