From f42e8368e73d7ece91566227355330ff86caa624 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 4 Jan 2013 14:20:45 +0000 Subject: [PATCH] fix ldap host configuration git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1428875 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/general-admin.js | 6 ++---- 1 file changed, 2 insertions(+), 4 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 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(); -- 2.39.5