diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js index 920365945..661ec5fd8 100644 --- a/html/js/acc_ledger.js +++ b/html/js/acc_ledger.js @@ -1372,4 +1372,30 @@ function delete_filter (p_div,p_dossier,p_filter_id) { } }) -} \ No newline at end of file +} +/** + * Reset the search_form and reinitialize all the input but ledger_type + * @param p_div prefix for DOM Element + */ +function reset_filter(p_div) { + // clean all the input fields but ledger_type remains + var elt=['date_start','date_end','date_paid_start','date_paid_end','desc','amount_min','amount_max','qcode','accounting']; + for (var i=0;idiv}button","Filtre"); $box->add_input(_('Ajout'), $save_filter); $box->add_javascript(_('Gestion Filtre'), $search_filter); +$box->add_javascript(_('Remise à zéro'), "reset_filter('{$this->div}')"); echo $box->input(); ?>