From: Olivier Lamy Date: Fri, 4 Jan 2013 14:20:45 +0000 (+0000) Subject: fix ldap host configuration X-Git-Tag: archiva-1.4-M4~318 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f42e8368e73d7ece91566227355330ff86caa624;p=archiva.git fix ldap host configuration git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1428875 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 0424afa08..c2e2247fa 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 @@ -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();