From: Olivier Lamy Date: Mon, 13 Feb 2012 08:57:55 +0000 (+0000) Subject: roles screen add a column to save modified roles X-Git-Tag: archiva-1.4-M3~1319 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bdbbc8984acee1a5e9eb56f718aaf7cc020d765b;p=archiva.git 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 --- 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}}