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'];
|
$left = $left * $proportion['proportion_width'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$agentname = agents_get_name(agents_get_module_id ($id_module));
|
||||||
$text = '<span id="text_' . $id . '" class="text">' . $label . '</span>';
|
$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'])) {
|
if (!isset($layoutData['status_calculated'])) {
|
||||||
$layoutData['status_calculated'] =
|
$layoutData['status_calculated'] =
|
||||||
|
@ -1434,16 +1435,16 @@ function visual_map_process_wizard_add_modules ($id_modules, $image,
|
||||||
switch ($label_type) {
|
switch ($label_type) {
|
||||||
case 'agent_module':
|
case 'agent_module':
|
||||||
default:
|
default:
|
||||||
$agent_label = ui_print_truncate_text(agents_get_name ($id_agent), 'agent_small', false, true, false, '…', false);
|
$agent_label = agents_get_name ($id_agent);
|
||||||
$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.';">'.$agent_label . " - " . $module_label.'</span></p>';
|
$label = '<p><span class="visual_font_size_'.$fonts.'" style="font-family:'.$fontf.';">'.$agent_label . " - " . $module_label.'</span></p>';
|
||||||
break;
|
break;
|
||||||
case 'module':
|
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>';
|
$label = '<p><span class="visual_font_size_'.$fonts.'" style="font-family:'.$fontf.';">'.$module_label.'</span></p>';
|
||||||
break;
|
break;
|
||||||
case 'agent':
|
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>';
|
$label = '<p><span class="visual_font_size_'.$fonts.'" style="font-family:'.$fontf.';">'.$agent_label.'</span></p>';
|
||||||
break;
|
break;
|
||||||
case 'none':
|
case 'none':
|
||||||
|
@ -1635,9 +1636,8 @@ function visual_map_process_wizard_add_agents ($id_agents, $image,
|
||||||
|
|
||||||
switch ($label_type) {
|
switch ($label_type) {
|
||||||
case 'agent':
|
case 'agent':
|
||||||
$agent_label = ui_print_truncate_text(
|
$agent_label =
|
||||||
agents_get_name($id_agent),
|
agents_get_name($id_agent);
|
||||||
'agent_small', false, true, false, '…', false);
|
|
||||||
$label = $agent_label;
|
$label = $agent_label;
|
||||||
break;
|
break;
|
||||||
case 'none':
|
case 'none':
|
||||||
|
|
Loading…
Reference in New Issue