FIX for combo on rtl languages
This commit is contained in:
parent
34e09315cc
commit
428c3e973d
@ -607,8 +607,9 @@ if (! empty($arrayfields['p.fk_statut']['checked']))
|
||||
print '<td class="liste_titre nowrap" align="right">';
|
||||
$arrayofstatus = array();
|
||||
foreach($object->statuts_short as $key => $val) $arrayofstatus[$key]=$langs->trans($val);
|
||||
$arrayofstatus['99']=$langs->trans("NotClosed").' ('.$langs->trans('Draft').'+'.$langs->trans('Opened').')';
|
||||
print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100');
|
||||
$arrayofstatus['99']=$langs->trans("NotClosed").' ('.$langs->trans('Draft').' + '.$langs->trans('Opened').')';
|
||||
print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100 selectarrowonleft');
|
||||
print ajax_combobox('search_status');
|
||||
print '</td>';
|
||||
}
|
||||
// Action column
|
||||
|
||||
@ -801,6 +801,13 @@ div.fiche>div.tabBar>form>div.div-table-responsive {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
select.selectarrowonleft {
|
||||
direction: rtl;
|
||||
}
|
||||
select.selectarrowonleft option {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Styles to hide objects */
|
||||
@ -4380,7 +4387,7 @@ dl.dropdown {
|
||||
}
|
||||
.dropdown ul {
|
||||
margin: -1px 0 0 0;
|
||||
text-align: left;
|
||||
text-align: <?php echo $left; ?>;
|
||||
}
|
||||
.dropdown dd {
|
||||
position:relative;
|
||||
@ -4399,7 +4406,7 @@ dl.dropdown {
|
||||
background-color: #FFF;
|
||||
border: 1px solid #888;
|
||||
display:none;
|
||||
right:0px; /* pop is align on right */
|
||||
<?php echo $right; ?>:0px; /* pop is align on right */
|
||||
padding: 2px 15px 2px 5px;
|
||||
position:absolute;
|
||||
top:2px;
|
||||
@ -4416,7 +4423,7 @@ dl.dropdown {
|
||||
padding: 2px;
|
||||
}
|
||||
.dropdown dd ul li input[type="checkbox"] {
|
||||
margin-right: 3px;
|
||||
margin-<?php echo $right; ?>: 3px;
|
||||
}
|
||||
.dropdown dd ul li a, .dropdown dd ul li span {
|
||||
padding: 3px;
|
||||
|
||||
@ -804,6 +804,13 @@ div.fiche>form>div.div-table-responsive {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
select.selectarrowonleft {
|
||||
direction: rtl;
|
||||
}
|
||||
select.selectarrowonleft option {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Styles to hide objects */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user