diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html index 0fc70e6d3..39da87c9e 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html @@ -95,7 +95,7 @@ Users
  • - Add User + {{$.i18n.prop('user.add')}}
  • diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js index 23b9d981c..d68b0bc74 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js @@ -124,6 +124,8 @@ $(function() { activateUsersEditTab(); + $("#users-view-tabs-li-user-edit a").html($.i18n.prop("user.edit")); + $("#main-content #user-create").delegate("#user-create-form-cancel-button", "click keydown", function(e) { e.preventDefault(); activateUsersGridTab(); @@ -166,6 +168,10 @@ $(function() { if ($(e.target).attr("href")=="#createUserForm") { window.redbackModel.usersViewModel.addUser(); } + if ($(e.target).attr("href")=="#users-view") { + $("#users-view-tabs-li-user-edit a").html($.i18n.prop("user.add")); + } + }) $("#users-view-tabs-content #users-view").addClass("active"); }