From 3ace08d9caeb785357639a5d34cf44d11021d595 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 23 Aug 2013 11:14:09 +0200 Subject: [PATCH] change order of permission column and use a more robust cell editor check --- .../sonia.repository.permissionformpanel.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js index 4670ddf9b1..b29f3b2beb 100644 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js +++ b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.permissionformpanel.js @@ -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 ){