From: Olivier Lamy Date: Mon, 18 Feb 2013 09:30:13 +0000 (+0000) Subject: use new bean mapping in js X-Git-Tag: archiva-1.4-M4~175 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f127c7f705b7b4251d64d33c1c925e6ef31cbcc3;p=archiva.git use new bean mapping in js git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1447169 13f79535-47bb-0310-9956-ffa450edef68 --- 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',