View | Details | Raw Unified | Return to bug 34352
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (+1 lines)
Lines 242-247 Link Here
242
    </script>
242
    </script>
243
243
244
    [% INCLUDE 'datatables.inc' %]
244
    [% INCLUDE 'datatables.inc' %]
245
    [% INCLUDE 'calendar.inc' %]
245
    [% INCLUDE 'js-patron-get-age.inc' %]
246
    [% INCLUDE 'js-patron-get-age.inc' %]
246
    [% INCLUDE 'js-patron-format.inc' %]
247
    [% INCLUDE 'js-patron-format.inc' %]
247
    [% INCLUDE 'js-patron-format-address.inc' %]
248
    [% INCLUDE 'js-patron-format-address.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-1 / +12 lines)
Lines 890-895 function _dt_add_filters(table_node, table_dt, filters_options = {}) { Link Here
890
                    o.appendTo(select);
890
                    o.appendTo(select);
891
                });
891
                });
892
                $(this).html( select );
892
                $(this).html( select );
893
            } else if (table_dt.settings()[0].aoColumns[i].sType == 'date' ) {
894
                let existing_search = table_dt.column(i).search();
895
                let input = $('<input type="text" class="flatpickr" style="width: 100%" />');
896
                if (existing_search) {
897
                    input.prop("value", existing_search);
898
                }
899
900
                $(this).html( input );
893
            } else {
901
            } else {
894
                var title = $(this).text();
902
                var title = $(this).text();
895
                var existing_search = table_dt.column(i).search();
903
                var existing_search = table_dt.column(i).search();
Lines 920-925 function _dt_add_filters(table_node, table_dt, filters_options = {}) { Link Here
920
            $(this).html('');
928
            $(this).html('');
921
        }
929
        }
922
    } );
930
    } );
931
932
    $(".flatpickr").each(function(){
933
        apply_flatpickr(this);
934
    });
923
}
935
}
924
936
925
937
926
- 

Return to bug 34352