From f127c7f705b7b4251d64d33c1c925e6ef31cbcc3 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 18 Feb 2013 09:30:13 +0000 Subject: [PATCH] use new bean mapping in js git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1447169 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/general-admin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js index a859b91e8..571345276 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js @@ -1622,24 +1622,24 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" }; } - UserManagerImplementationInformation=function(beanId,descriptionKey,readOnly){ + ManagerImplementationInformation=function(beanId,descriptionKey,readOnly){ this.beanId=beanId; this.descriptionKey=descriptionKey; this.description= $.i18n.prop(descriptionKey); this.readOnly=readOnly; } - mapUserManagerImplementationInformations=function(data){ + mapManagerImplementationInformations=function(data){ return $.map(data, function(item) { - return mapUserManagerImplementationInformation(item); + return mapManagerImplementationInformation(item); }); } - mapUserManagerImplementationInformation=function(data){ + mapManagerImplementationInformation=function(data){ if(data==null){ return null; } - return new UserManagerImplementationInformation(data.beanId,data.descriptionKey,data.readOnly); + return new ManagerImplementationInformation(data.beanId,data.descriptionKey,data.readOnly); } activateRedbackRuntimeGeneralFormValidation=function(){ @@ -1701,7 +1701,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" type: "GET", dataType: 'json', success: function(data) { - var userManagerImplementationInformations=mapUserManagerImplementationInformations(data); + var userManagerImplementationInformations=mapManagerImplementationInformations(data); $.ajax("restServices/archivaServices/redbackRuntimeConfigurationService/redbackRuntimeConfiguration", { type: "GET", dataType: 'json', -- 2.39.5