]> source.dussan.org Git - archiva.git/commitdiff
use new bean mapping in js
authorOlivier Lamy <olamy@apache.org>
Mon, 18 Feb 2013 09:30:13 +0000 (09:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 18 Feb 2013 09:30:13 +0000 (09:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1447169 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js

index a859b91e8ce4264af823b3882bcbcc957b12b3b2..571345276b9cfacf012307842db91b0736a616bd 100644 (file)
@@ -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',