fix ldap host configuration

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1428875 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-01-04 14:20:45 +00:00
parent ac9f4ac10c
commit f42e8368e7
1 changed files with 2 additions and 4 deletions

View 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();