Fix Spinner issues with Base DN field

This commit is contained in:
Arthur Schiwon 2013-10-17 20:57:19 +02:00
parent 6acd01d9f2
commit 183dd813d3
1 changed files with 11 additions and 2 deletions

View File

@ -157,6 +157,10 @@ var LdapWizard = {
} }
} }
LdapWizard.functionalityCheck(); LdapWizard.functionalityCheck();
if($('#ldapSettings').tabs('option', 'active') == 0) {
LdapWizard.basicStatusCheck();
}
}, },
basicStatusCheck: function() { basicStatusCheck: function() {
@ -451,6 +455,9 @@ var LdapWizard = {
if($('#ldap_port').val()) { if($('#ldap_port').val()) {
$('#ldap_port').removeClass('invisible'); $('#ldap_port').removeClass('invisible');
} }
if($('#ldap_base').val()) {
$('#ldap_base').removeClass('invisible');
}
LdapWizard.basicStatusCheck(); LdapWizard.basicStatusCheck();
}, },
@ -584,8 +591,10 @@ var LdapWizard = {
}, },
showSpinner: function(id) { showSpinner: function(id) {
if($(id + ' + .wizSpinner').length == 0) {
$(LdapWizard.spinner).insertAfter($(id)); $(LdapWizard.spinner).insertAfter($(id));
$(id + " + img + button").css('display', 'none'); $(id + " + img + button").css('display', 'none');
}
}, },
toggleRawFilter: function(container, moc, mg, stateVar) { toggleRawFilter: function(container, moc, mg, stateVar) {