Merge branch 'ent-4307-No-se-puede-copiar-agent_name-ni-ID-de-agente-en-vista-de-agente-Firefox' into 'develop'

Changed disabled to readonly in agent name and id- #4307

See merge request artica/pandorafms!2578
This commit is contained in:
Daniel Rodriguez 2019-07-16 11:52:12 +02:00
commit ab7743b578
2 changed files with 6 additions and 2 deletions

View File

@ -201,7 +201,7 @@ if (!$new_agent && $alias != '') {
$table_agent_name .= '<div class="label_select_child_right agent_options_agent_name" style="width: 40%;">'; $table_agent_name .= '<div class="label_select_child_right agent_options_agent_name" style="width: 40%;">';
if ($id_agente) { if ($id_agente) {
$table_agent_name .= '<label>'.__('ID').'</label><input style="width: 50%;" type="text" disabled="true" value="'.$id_agente.'" />'; $table_agent_name .= '<label>'.__('ID').'</label><input style="width: 50%;" type="text" readonly value="'.$id_agente.'" />';
$table_agent_name .= '<a href="index.php?sec=gagente&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'">'; $table_agent_name .= '<a href="index.php?sec=gagente&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'">';
$table_agent_name .= html_print_image( $table_agent_name .= html_print_image(
'images/zoom.png', 'images/zoom.png',
@ -1223,7 +1223,7 @@ ui_require_jquery_file('bgiframe');
128, 128,
128 128
); );
$("#text-agente").prop('disabled', true); $("#text-agente").prop('readonly', true);
}); });
</script> </script>

View File

@ -5324,6 +5324,10 @@ table.info_table.policy_sub_table {
margin-bottom: 4px; margin-bottom: 4px;
} }
.agent_options input[readonly] {
color: #848484;
}
/* /*
* --------------------------------------------------------------------- * ---------------------------------------------------------------------
* - CLASSES FOR THE NEW TOGGLES - * - CLASSES FOR THE NEW TOGGLES -