Merge pull request #231 from victorsl/BUG-9402

BUG 9402 "Falta el rotulo de Documents en la columna cuando se..." SOLVED
This commit is contained in:
julceslauhub
2012-07-12 11:26:38 -07:00

View File

@@ -1114,14 +1114,13 @@ var expander = new Ext.ux.grid.RowExpander({
renderer : renderVersionExpander renderer : renderVersionExpander
}); });
// the column model has information about grid columns //The column model has information about grid columns
//dataIndex maps the column to the specific data field in //dataIndex maps the column to the specific data field in
//the data store //the data store
var cm = new Ext.grid.ColumnModel([{ var cm = new Ext.grid.ColumnModel([{
id : 'gridcm', // id assigned so we can apply custom css (e.g. id: "gridcm", //id assigned so we can apply custom css (e.g. -> .x-grid-col-topic b { color:#333 })
// .x-grid-col-topic b { color:#333 }) header: _("ID_NAME"),
header : TRANSLATIONS.ID_NAME, dataIndex: "name",
dataIndex : 'name',
width: 200, width: 200,
renderer: renderFileName, renderer: renderFileName,
sortable: true, sortable: true,
@@ -1129,109 +1128,110 @@ var cm = new Ext.grid.ColumnModel([{
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
allowBlank: false allowBlank: false
}), }),
css : 'white-space:normal;' css: "white-space:normal;"
}, { }, {
header : TRANSLATIONS.ID_VERSION, header: _("ID_VERSION"),
dataIndex : 'docVersion', dataIndex: "docVersion",
width : 50, width: 100,
align : 'center', align: "center",
renderer: renderVersion renderer: renderVersion
}, /* expander, */{ }, /* expander, */{
header : TRANSLATIONS.ID_MODIFIED, header: _("ID_MODIFIED"),
dataIndex : 'appDocCreateDate', dataIndex: "appDocCreateDate",
width : 65, width: 100,
renderer: renderModifiedDate renderer: renderModifiedDate
}, { }, {
header : TRANSLATIONS.ID_OWNER, header: _("ID_OWNER"),
dataIndex : 'owner', dataIndex: "owner",
width: 100, width: 100,
sortable: true, sortable: true,
groupable: true, groupable: true,
renderer: renderFullName renderer: renderFullName
//sortable: false //sortable: false
}, { }, {
header : "PM Type", header: _("ID_DOCUMENT_TYPE"),
dataIndex : 'appDocType', dataIndex: "appDocType",
width : 70, width: 100,
hidden: true hidden: true
// align : 'right' //align: "right"
//renderer: renderType //renderer: renderType
}, { }, {
dataIndex: "appDocPlugin", dataIndex: "appDocPlugin",
hidden: true hidden: true,
hideable: false
}, { }, {
header : TRANSLATIONS.ID_TYPE, header: _("ID_TYPE"),
dataIndex : 'type', dataIndex: "type",
width: 100, width: 100,
sortable: true, sortable: true,
groupable: true, groupable: true,
// align : 'right', //align: "right",
renderer: renderType renderer: renderType
}, { }, {
header : TRANSLATIONS.ID_PROCESS, header: _("ID_PROCESS"),
dataIndex : 'proTitle', dataIndex: "proTitle",
width: 150, width: 150,
sortable: true, sortable: true,
groupable: true groupable: true
// align : 'right' //align: "right"
//renderer: renderType //renderer: renderType
}, { }, {
header : TRANSLATIONS.ID_CASE, header: _("ID_CASE"),
dataIndex : 'appLabel', dataIndex: "appLabel",
width: 150, width: 150,
sortable: true, sortable: true,
groupable: true groupable: true
// align : 'right' //align: "right"
//renderer: renderType //renderer: renderType
},{ },{
header : TRANSLATIONS.ID_SIZE, header: _("ID_SIZE"),
dataIndex : 'size', dataIndex: "size",
width: 50, width: 50,
hidden: true hidden: true
}, { }, {
header : TRANSLATIONS.ID_PERMISSIONS, header: _("ID_PERMISSIONS"),
dataIndex : 'perms', dataIndex: "perms",
width: 100, width: 100,
hidden: true hidden: true
}, { }, {
dataIndex : 'is_deletable', dataIndex: "is_deletable",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_file', dataIndex: "is_file",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_archive', dataIndex: "is_archive",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_writable', dataIndex: "is_writable",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_chmodable', dataIndex: "is_chmodable",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_readable', dataIndex: "is_readable",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_deletable', dataIndex: "is_deletable",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'is_editable', dataIndex: "is_editable",
hidden: true, hidden: true,
hideable: false hideable: false
}, { }, {
dataIndex : 'id', dataIndex: "id",
hidden: true, hidden: true,
hideable: false hideable: false
}]); }]);
// by default columns are sortable //By default columns are sortable
cm.defaultSortable = true; cm.defaultSortable = true;
function handleRowClick(sm, rowIndex) {//alert(rowIndex); function handleRowClick(sm, rowIndex) {//alert(rowIndex);