Working on issue #981 - Allow customization of detected BaseDNs.

This commit is contained in:
Thorsten Eckel 2017-05-05 15:06:32 +02:00
parent 2a53d1f1d0
commit 1414f3c7e4

View file

@ -286,7 +286,7 @@ class ConnectionWizard extends App.WizardModal
bindShow: (alreadyShown) => bindShow: (alreadyShown) =>
@showSlide('js-bind') if !alreadyShown @showSlide('js-bind') if !alreadyShown
@$('.js-bind .js-baseDn').html(@createSelection('base_dn', @wizardConfig.options, @wizardConfig.option)) @$('.js-bind .js-baseDn').html(@createSelection('base_dn', @wizardConfig.options, @wizardConfig.base_dn || @wizardConfig.option, true))
@$('.js-bind input[name="bind_user"]').val(@wizardConfig.bind_user) @$('.js-bind input[name="bind_user"]').val(@wizardConfig.bind_user)
@$('.js-bind input[name="bind_pw"]').val(@wizardConfig.bind_pw) @$('.js-bind input[name="bind_pw"]').val(@wizardConfig.bind_pw)
@ -433,7 +433,7 @@ class ConnectionWizard extends App.WizardModal
el.find('.js-roleList').html(@createSelection('dest', @wizardConfig.wizardData.roles, dest)) el.find('.js-roleList').html(@createSelection('dest', @wizardConfig.wizardData.roles, dest))
el el
createSelection: (name, options, selected) -> createSelection: (name, options, selected, unknown) ->
return App.UiElement.searchable_select.render( return App.UiElement.searchable_select.render(
name: name name: name
multiple: false multiple: false
@ -442,6 +442,7 @@ class ConnectionWizard extends App.WizardModal
nulloption: false nulloption: false
options: options options: options
value: selected value: selected
unknown: unknown
class: 'form-control--small' class: 'form-control--small'
) )