fabd
This commit is contained in:
parent
7a12139da8
commit
2eab1201f8
|
|
@ -1476,7 +1476,7 @@ select[class*="selectpicker"],
|
|||
/* Applique la bordure manquante et l'arrondi Neutral Pro */
|
||||
.bootstrap-select > .dropdown-toggle.btn-light {
|
||||
background-color: #fff !important;
|
||||
border: 2px solid #26292b !important;
|
||||
border: 2px solid #dee2e6 !important;
|
||||
border-left: 0 !important; /* L'icône a déjà la bordure gauche */
|
||||
border-radius: 0 0.375rem 0.375rem 0 !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47685,18 +47685,21 @@ function formAjoutTableRef() {
|
|||
// Filtrer la liste des villes par pays
|
||||
function filtreVilleParPays() {
|
||||
const codePays = $('#codePays').val();
|
||||
const racineWeb = $("#racineWeb").val();
|
||||
const $selectVille = $('#codeVille');
|
||||
|
||||
$.ajax({
|
||||
url: racineWeb + "Ajaxfiltrevilleparpays/",
|
||||
url: $("#racineWeb").val() + "Ajaxfiltrevilleparpays/",
|
||||
type: 'post',
|
||||
data: { codePays: codePays },
|
||||
success: function(data) {
|
||||
// On injecte le HTML (contenant le <select> ou les <option>)
|
||||
$('#div_ville').html(data);
|
||||
success: function(htmlOptions) {
|
||||
// 1. On vide COMPLÈTEMENT le select pour supprimer l'ancien "-- Sélectionner --"
|
||||
$selectVille.empty();
|
||||
|
||||
// 2. On injecte les nouvelles options
|
||||
$selectVille.append(htmlOptions);
|
||||
|
||||
// On appelle la fonction de nettoyage radical
|
||||
actualiserSelectPicker('#div_ville .selectpicker');
|
||||
// 3. On rafraîchit le plugin (cela mettra à jour l'affichage sans doubler)
|
||||
$selectVille.selectpicker('refresh');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -47769,7 +47772,7 @@ function formModifTableRef($idData) {
|
|||
|
||||
// On nettoie et on initialise tous les selects du formulaire
|
||||
actualiserSelectPicker('#div_maj_table .selectpicker');
|
||||
|
||||
|
||||
// Initialisation des composants
|
||||
$(".datepicker").datepicker({ autoclose: true, format: 'dd/mm/yyyy' });
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<option value=""><?= _("-- Sélectionner --") ?></option>
|
||||
<?= liste_options($ville,'',false) ?>
|
||||
|
||||
<?php foreach ($villes as $v): ?>
|
||||
<option value="<?= $v['code'] ?>"><?= $v['libelle'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user