2013-07-03 Sergio Martin <sergio.martin@artica.es>

* godmode/users/configure_user.php: improve the meta
	setup screen hidding assigned server field when the
	agent management is not checked



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8453 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-07-03 07:40:27 +00:00
parent fb136060cf
commit 036b675f78
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-07-03 Sergio Martin <sergio.martin@artica.es>
* godmode/users/configure_user.php: improve the meta
setup screen hidding assigned server field when the
agent management is not checked
2013-07-02 Sergio Martin <sergio.martin@artica.es> 2013-07-02 Sergio Martin <sergio.martin@artica.es>
* include/functions_api.php: Changed the way of encode * include/functions_api.php: Changed the way of encode

View File

@ -506,7 +506,7 @@ if($meta) {
$table->data['metaconsole_agents_manager'] = $data; $table->data['metaconsole_agents_manager'] = $data;
$data = array(); $data = array();
$data[0] = __('Assigned node'). ui_print_help_tip(__('Server where the agents managed of this user will be placed'), true); $data[0] = __('Assigned node'). ui_print_help_tip(__('Server where the agents created of this user will be placed'), true);
$servers = metaconsole_get_servers(); $servers = metaconsole_get_servers();
$servers_for_select = array(); $servers_for_select = array();
foreach($servers as $server) { foreach($servers as $server) {
@ -663,7 +663,17 @@ $(document).ready (function () {
} }
}); });
$('#checkbox-metaconsole_agents_manager').change(function() {
if($('#checkbox-metaconsole_agents_manager').prop('checked')) {
$('#user_configuration_table-metaconsole_assigned_server').show();
}
else {
$('#user_configuration_table-metaconsole_assigned_server').hide();
}
});
$('input:radio[name="is_admin"]').trigger('change'); $('input:radio[name="is_admin"]').trigger('change');
$('#checkbox-metaconsole_agents_manager').trigger('change');
}); });
/* ]]> */ /* ]]> */
</script> </script>