From f3f4dec96eba04f8589239901891b29ec4a5cf94 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 May 2013 05:01:28 +0200 Subject: [PATCH] Fix: Error with jmobile --- htdocs/core/class/html.formother.class.php | 113 +++++++++++---------- 1 file changed, 59 insertions(+), 54 deletions(-) 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.= '