Change hover text in vconsole, full text in bbdd but show truncate - #13
This commit is contained in:
parent
e0d55c56e6
commit
32b0e504aa
|
@ -121,8 +121,9 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||
$left = $left * $proportion['proportion_width'];
|
||||
}
|
||||
|
||||
|
||||
$text = '<span id="text_' . $id . '" class="text">' . $label . '</span>';
|
||||
$agentname = agents_get_name(agents_get_module_id ($id_module));
|
||||
$label = str_replace($agentname,ui_print_truncate_text($agentname, 'agent_small', false, true, false, '…', false),$label);
|
||||
$text = '<span id="text_' . $id . '" class="text">' . $label .'</span>';
|
||||
|
||||
if (!isset($layoutData['status_calculated'])) {
|
||||
$layoutData['status_calculated'] =
|
||||
|
@ -1434,16 +1435,16 @@ function visual_map_process_wizard_add_modules ($id_modules, $image,
|
|||
switch ($label_type) {
|
||||
case 'agent_module':
|
||||
default:
|
||||
$agent_label = ui_print_truncate_text(agents_get_name ($id_agent), 'agent_small', false, true, false, '…', false);
|
||||
$module_label = ui_print_truncate_text(modules_get_agentmodule_name($id_module), 'module_small', false, true, false, '…', false);
|
||||
$agent_label = agents_get_name ($id_agent);
|
||||
$module_label = modules_get_agentmodule_name($id_module);
|
||||
$label = '<p><span class="visual_font_size_'.$fonts.'" style="font-family:'.$fontf.';">'.$agent_label . " - " . $module_label.'</span></p>';
|
||||
break;
|
||||
case 'module':
|
||||
$module_label = ui_print_truncate_text(modules_get_agentmodule_name($id_module), 'module_small', false, true, false, '…', false);
|
||||
$module_label = modules_get_agentmodule_name($id_module);
|
||||
$label = '<p><span class="visual_font_size_'.$fonts.'" style="font-family:'.$fontf.';">'.$module_label.'</span></p>';
|
||||
break;
|
||||
case 'agent':
|
||||
$agent_label = ui_print_truncate_text(agents_get_name ($id_agent), 'agent_small', false, true, false, '…', false);
|
||||
$agent_label = agents_get_name ($id_agent);
|
||||
$label = '<p><span class="visual_font_size_'.$fonts.'" style="font-family:'.$fontf.';">'.$agent_label.'</span></p>';
|
||||
break;
|
||||
case 'none':
|
||||
|
@ -1635,9 +1636,8 @@ function visual_map_process_wizard_add_agents ($id_agents, $image,
|
|||
|
||||
switch ($label_type) {
|
||||
case 'agent':
|
||||
$agent_label = ui_print_truncate_text(
|
||||
agents_get_name($id_agent),
|
||||
'agent_small', false, true, false, '…', false);
|
||||
$agent_label =
|
||||
agents_get_name($id_agent);
|
||||
$label = $agent_label;
|
||||
break;
|
||||
case 'none':
|
||||
|
|
Loading…
Reference in New Issue