From bdbbc8984acee1a5e9eb56f718aaf7cc020d765b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 13 Feb 2012 08:57:55 +0000 Subject: [PATCH] roles screen add a column to save modified roles git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1243439 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/redback/roles.js | 11 +++++++++++ .../main/webapp/js/redback/templates/roles-tmpl.html | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js index ebf0390e4..51fcce823 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js @@ -179,6 +179,17 @@ $(function() { } } + updateRole=function(modifiedRole){ + if (modifiedRole.modified()){ + modifiedRole.updateDescription(); + modifiedRole.modified(false); + } + if (modifiedRole.usersModified()){ + modifiedRole.updateUsers(); + modifiedRole.usersModified(false); + } + } + } displayRolesGrid = function(){ diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html index 8113a78fc..bcccfbfd4 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html @@ -190,6 +190,7 @@ ${ columnDefinition.headerText } {{/each}} ${$.i18n.prop('edit')} + ${$.i18n.prop('save')} @@ -204,6 +205,11 @@ ${$.i18n.prop('edit')} + + {{if row.modified()}} + ${$.i18n.prop('save')} + {{/if}} + {{/each}} -- 2.39.5