Fixed: bad place for the ajaxcombo.
This commit is contained in:
parent
d8838f9438
commit
854ed90a62
@ -1342,6 +1342,12 @@ class Form
|
||||
$out.= '<option value="">'.$langs->trans("None").'</option>';
|
||||
}
|
||||
$out.= '</select>';
|
||||
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php';
|
||||
$out.= ajax_combobox($htmlname);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4566,10 +4572,17 @@ class Form
|
||||
}
|
||||
else
|
||||
{
|
||||
$out.= '<select class="flat" name="'.$htmlname.'" disabled="disabled">';
|
||||
$out.= '<option value="">'.$langs->trans("None").'</option>';
|
||||
$out.= '<select class="flat" name="'.$htmlname.'"'.($show_empty?'':' disabled="disabled"').'>';
|
||||
if ($show_empty) $out.= '<option value="-1"'.($selected==-1?' selected="selected"':'').'> </option>'."\n";
|
||||
$out.= '<option value="" disabled="disabled">'.$langs->trans("NoUserGroupDefined").'</option>';
|
||||
}
|
||||
$out.= '</select>';
|
||||
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php';
|
||||
$out.= ajax_combobox($htmlname);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -70,36 +70,13 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
||||
{
|
||||
print '<tr>';
|
||||
print '<td class="nowrap">';
|
||||
//print $langs->trans("ActionsAskedBy");
|
||||
//print ' </td><td class="nowrap maxwidthonsmartphone">';
|
||||
//print $form->select_dolusers($filtera, 'userasked', 1, '', ! $canedit);
|
||||
//print ' '.$langs->trans("or") . ' ';
|
||||
print $langs->trans("ActionsOwnedBy").' ';
|
||||
print '</td><td class="nowrap maxwidthonsmartphone">';
|
||||
//print $langs->trans("User");
|
||||
print $form->select_dolusers($filtert, 'usertodo', 1, '', ! $canedit);
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php';
|
||||
print ajax_combobox('usertodo');
|
||||
}
|
||||
if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or") . ' ';
|
||||
else print '<br>';
|
||||
print $langs->trans("Group").' ';
|
||||
if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or") . ' '.$langs->trans("Group").' ';
|
||||
print $form->select_dolgroups($usergroupid, 'usergroup', 1, '', ! $canedit);
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
print ajax_combobox('usergroup');
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
/*print '<tr>';
|
||||
print '<td class="nowrap">';
|
||||
print $langs->trans("or") . ' ' . $langs->trans("ActionsDoneBy");
|
||||
print ' </td><td class="nowrap maxwidthonsmartphone">';
|
||||
print $form->select_dolusers($filterd, 'userdone', 1, '', ! $canedit);
|
||||
print '</td></tr>';*/
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
|
||||
$formactions=new FormActions($db);
|
||||
|
||||
|
||||
@ -321,8 +321,10 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0)
|
||||
global $conf;
|
||||
|
||||
if (! empty($conf->browser->phone)) return ''; // combobox disabled for smartphones (does not works)
|
||||
if (! empty($conf->dol_use_jmobile)) return ''; // combobox with jmobile (does not works)
|
||||
if (! empty($conf->global->MAIN_DISABLE_AJAX_COMBOX)) return '';
|
||||
|
||||
if (empty($conf->use_javascript_ajax)) return '';
|
||||
|
||||
/* Some properties for combobox:
|
||||
minLengthToAutocomplete: 2,
|
||||
comboboxContainerClass: "comboboxContainer",
|
||||
|
||||
@ -169,6 +169,7 @@ User=User
|
||||
Users=Users
|
||||
Group=Group
|
||||
Groups=Groups
|
||||
NoUserGroupDefined=No user group defined
|
||||
Password=Password
|
||||
PasswordRetype=Retype your password
|
||||
NoteSomeFeaturesAreDisabled=Note that a lot of features/modules are disabled in this demonstration.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user