]> source.dussan.org Git - archiva.git/commitdiff
fix ldap host configuration
authorOlivier Lamy <olamy@apache.org>
Fri, 4 Jan 2013 14:20:45 +0000 (14:20 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 4 Jan 2013 14:20:45 +0000 (14:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1428875 13f79535-47bb-0310-9956-ffa450edef68

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

index 0424afa08319b7928a17bb2ffc9292e3b7a1a15c..c2e2247fa59e6c1f699e5430867640d62ddf9f51 100644 (file)
@@ -1584,8 +1584,6 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
     var validator = formSelector.validate({
       rules: {
         ldapHost : {
-          digits: true,
-          min: 1,
           required: true
         },
         ldapPort : {
@@ -1615,9 +1613,9 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
         dataType: 'json',
         success: function(data) {
           // TODO use window.redbackRuntimeConfiguration ?
-          window.redbackRuntimeConfiguration = mapRedbackRuntimeConfiguration(data);
+          var redbackRuntimeConfiguration = mapRedbackRuntimeConfiguration(data);
           var redbackRuntimeConfigurationViewModel =
-              new RedbackRuntimeConfigurationViewModel(window.redbackRuntimeConfiguration,userManagerImplementationInformations);
+              new RedbackRuntimeConfigurationViewModel(redbackRuntimeConfiguration,userManagerImplementationInformations);
           mainContent.html( $("#redback-runtime-configuration-main" ).tmpl() );
           ko.applyBindings(redbackRuntimeConfigurationViewModel,$("#redback-runtime-configuration-content" ).get(0));
           activateRedbackRuntimeGeneralFormValidation();