mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-01 04:09:08 +01:00
change order of permission column and use a more robust cell editor check
This commit is contained in:
@@ -57,6 +57,12 @@ Sonia.repository.PermissionFormPanel = Ext.extend(Sonia.repository.FormPanel, {
|
||||
sortable: true
|
||||
},
|
||||
columns: [{
|
||||
id: 'groupPermission',
|
||||
xtype: 'checkcolumn',
|
||||
header: this.colGroupPermissionText,
|
||||
dataIndex: 'groupPermission',
|
||||
width: 40
|
||||
},{
|
||||
id: 'name',
|
||||
header: this.colNameText,
|
||||
dataIndex: 'name',
|
||||
@@ -82,16 +88,10 @@ Sonia.repository.PermissionFormPanel = Ext.extend(Sonia.repository.FormPanel, {
|
||||
]
|
||||
})
|
||||
})
|
||||
},{
|
||||
id: 'groupPermission',
|
||||
xtype: 'checkcolumn',
|
||||
header: this.colGroupPermissionText,
|
||||
dataIndex: 'groupPermission',
|
||||
width: 40
|
||||
}],
|
||||
|
||||
getCellEditor: function(colIndex, rowIndex) {
|
||||
if (colIndex === 0) {
|
||||
if (this.getColumnId(colIndex) === 'name') {
|
||||
var store = null;
|
||||
var rec = permissionStore.getAt(rowIndex);
|
||||
if ( rec.data.groupPermission ){
|
||||
|
||||
Reference in New Issue
Block a user