Fix for smartphone
This commit is contained in:
parent
5df193ec93
commit
7b6d8dd23e
@ -526,7 +526,9 @@ class FormFile
|
|||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||||
$formadmin=new FormAdmin($this->db);
|
$formadmin=new FormAdmin($this->db);
|
||||||
$defaultlang=$codelang?$codelang:$langs->getDefaultLang();
|
$defaultlang=$codelang?$codelang:$langs->getDefaultLang();
|
||||||
$out.= $formadmin->select_language($defaultlang);
|
$morecss='maxwidth150';
|
||||||
|
if (! empty($conf->browser->phone)) $morecss='maxwidth100';
|
||||||
|
$out.= $formadmin->select_language($defaultlang, 'lang_id', 0, 0, 0, 0, 0, $morecss);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -345,7 +345,7 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
//if (! empty($conf->browser->phone)) return ''; // combobox disabled for smartphones (does not works)
|
if (! empty($conf->browser->phone)) return ''; // select2 disabled for smartphones with standard browser (does not works, popup appears outside screen)
|
||||||
if (! empty($conf->dol_use_jmobile)) return ''; // select2 works with jmobile but it breaks the autosize feature of jmobile.
|
if (! empty($conf->dol_use_jmobile)) return ''; // select2 works with jmobile but it breaks the autosize feature of jmobile.
|
||||||
if (! empty($conf->global->MAIN_DISABLE_AJAX_COMBOX)) return '';
|
if (! empty($conf->global->MAIN_DISABLE_AJAX_COMBOX)) return '';
|
||||||
if (empty($conf->use_javascript_ajax)) return '';
|
if (empty($conf->use_javascript_ajax)) return '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user