fixed minor bug: Assigned node field showing in meta user update form when selecting admin profile in case the user was a stardard user

This commit is contained in:
alejandro-campos 2018-11-13 19:00:16 +01:00
parent 75ad60a071
commit 5eed82eb62
1 changed files with 4 additions and 0 deletions

View File

@ -741,10 +741,14 @@ $(document).ready (function () {
if($('#radiobtn0002').prop('checked')) { if($('#radiobtn0002').prop('checked')) {
$('#user_configuration_table-metaconsole_agents_manager').show(); $('#user_configuration_table-metaconsole_agents_manager').show();
$('#user_configuration_table-metaconsole_access_node').show(); $('#user_configuration_table-metaconsole_access_node').show();
if($('#checkbox-metaconsole_agents_manager').prop('checked')) {
$('#user_configuration_table-metaconsole_assigned_server').show();
}
} }
else { else {
$('#user_configuration_table-metaconsole_agents_manager').hide(); $('#user_configuration_table-metaconsole_agents_manager').hide();
$('#user_configuration_table-metaconsole_access_node').hide(); $('#user_configuration_table-metaconsole_access_node').hide();
$('#user_configuration_table-metaconsole_assigned_server').hide();
} }
}); });