Feat : ajout d'un argument boutonSubmit dans les options de chargement du formulaire bigform pour afficher le bouton submit (par défaut reste invisible)
This commit is contained in:
parent
36cea7e4c6
commit
40d61b2988
2 changed files with 8 additions and 3 deletions
|
@ -20,11 +20,13 @@
|
|||
</div></form>
|
||||
|
||||
</div>
|
||||
]
|
||||
|
||||
][(#ENV{boutonSubmit}|non)
|
||||
<style type="text/css">
|
||||
.valider_bigup { display: none; }
|
||||
</style>]
|
||||
<script type="text/javascript">
|
||||
jQuery(function() {
|
||||
$('.valider_bigup').css('display','none');
|
||||
//$('.valider_bigup').css('display','none');
|
||||
$('input.bigup').bigup({}, {
|
||||
complete: function(){
|
||||
$(this).parents('form').submit();
|
||||
|
|
|
@ -12,12 +12,15 @@ function formulaires_bigform_charger_dist($objet, $id_objet, $mode = 'auto', $ar
|
|||
$charger_js_titre = $args['charger_js_titre'] ?? 'oui';
|
||||
$ajaxReload = null;
|
||||
}
|
||||
$boutonSubmit = !empty($args['boutonSubmit']) ? $args['boutonSubmit'] : null;
|
||||
|
||||
$valeurs = [
|
||||
'_bigup_rechercher_fichiers' => true,
|
||||
'id_objet' => $id_objet,
|
||||
'objet' => $objet,
|
||||
'ajaxReload' => $ajaxReload,
|
||||
'charger_js_titre' => $charger_js_titre === 'oui' ? 'oui' : 'non',
|
||||
'boutonSubmit' => $boutonSubmit,
|
||||
];
|
||||
|
||||
$valeurs['objet_ok'] = '';
|
||||
|
|
Loading…
Add table
Reference in a new issue