fixed visual error
This commit is contained in:
parent
b6a7598c33
commit
a0607e7230
|
@ -4052,8 +4052,10 @@ function html_print_autocomplete_modules(
|
|||
|
||||
ob_start();
|
||||
|
||||
$text_color = '';
|
||||
$module_icon = 'images/search_module.png';
|
||||
if ($config['style'] === 'pandora_black') {
|
||||
$text_color = 'color: white';
|
||||
$module_icon = 'images/brick.menu.png';
|
||||
}
|
||||
|
||||
|
@ -4066,7 +4068,7 @@ function html_print_autocomplete_modules(
|
|||
100,
|
||||
false,
|
||||
'',
|
||||
['style' => 'background: url('.$module_icon.') no-repeat right;']
|
||||
['style' => 'background: url('.$module_icon.') no-repeat right; '.$text_color.'']
|
||||
);
|
||||
html_print_input_hidden($name.'_hidden', $id_agent_module);
|
||||
|
||||
|
|
|
@ -4662,6 +4662,7 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
{
|
||||
global $config;
|
||||
|
||||
$text_color = '';
|
||||
// Normalize and extract the data from $parameters
|
||||
// ------------------------------------------------------------------.
|
||||
$return = false;
|
||||
|
@ -4692,6 +4693,7 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
$icon_agent = 'images/search_agent.png';
|
||||
|
||||
if ($config['style'] === 'pandora_black') {
|
||||
$text_color = 'style="color: white"';
|
||||
$icon_agent = 'images/agent_mc.menu.png';
|
||||
}
|
||||
|
||||
|
@ -5195,7 +5197,7 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
|
||||
//Set icon
|
||||
$("#'.$input_id.'")
|
||||
.css("background","url(\"'.$icon_image.'\") right center no-repeat");
|
||||
.css("background","url(\"'.$icon_image.'\") right center no-repeat '.$icon_image.'");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
@ -5536,8 +5538,13 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
// ------------------------------------------------------------------.
|
||||
$html = '';
|
||||
|
||||
$text_color = '';
|
||||
if ($config['style'] === 'pandora_black') {
|
||||
$text_color = 'color: white';
|
||||
}
|
||||
|
||||
$attrs = [];
|
||||
$attrs['style'] = 'background: url('.$icon_image.') no-repeat right;';
|
||||
$attrs['style'] = 'background: url('.$icon_image.') no-repeat right; '.$text_color.'';
|
||||
|
||||
if (!$disabled_javascript_on_blur_function) {
|
||||
$attrs['onblur'] = $javascript_on_blur_function_name.'()';
|
||||
|
|
Loading…
Reference in New Issue