diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index c3157c07124..c2d3a7c32c2 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -544,68 +544,73 @@ class FormOther
*/
function selectColor($set_color='', $prefix='f_color', $form_name='objForm', $showcolorbox=1, $arrayofcolors='', $morecss='')
{
- global $langs;
+ global $langs,$conf;
$out='';
if (! is_array($arrayofcolors) || count($arrayofcolors) < 1)
{
$langs->load("other");
- $out.= '';
- $out.= '';
- $out.= '';
+ if (empty($conf->dol_use_jmobile))
+ {
+ $out.= '';
+ $out.= '';
+ $out.= '';
+ }
$out.= '';
}
else // In most cases, this is not used. We used instead function with no specific list of colors
{
- $out.= '';
- $out.= '';
- $out.= '';
-
+ if (empty($conf->dol_use_jmobile))
+ {
+ $out.= '';
+ $out.= '';
+ $out.= '';
+ }
$out.= '