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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-1 lines)
Lines 242-248 Link Here
242
    </script>
242
    </script>
243
243
244
    [% INCLUDE 'datatables.inc' %]
244
    [% INCLUDE 'datatables.inc' %]
245
    [% INCLUDE 'calendar.inc' %]
246
    [% INCLUDE 'js-patron-get-age.inc' %]
245
    [% INCLUDE 'js-patron-get-age.inc' %]
247
    [% INCLUDE 'js-patron-format.inc' %]
246
    [% INCLUDE 'js-patron-format.inc' %]
248
    [% INCLUDE 'js-patron-format-address.inc' %]
247
    [% INCLUDE 'js-patron-format-address.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-8 / +1 lines)
Lines 586-593 function _dt_default_ajax (params){ Link Here
586
                        } else {
586
                        } else {
587
                            console.log("datatype %s not supported yet".format(col.datatype));
587
                            console.log("datatype %s not supported yet".format(col.datatype));
588
                        }
588
                        }
589
                    } else if (col.data && ( col.data.endsWith('_on') || col.data.endsWith('_date') ) ) {
590
                        is_date_field = true;
591
                    }
589
                    }
592
590
593
                    if ( is_date_field ) {
591
                    if ( is_date_field ) {
Lines 900-906 function _dt_add_filters(table_node, table_dt, filters_options = {}) { Link Here
900
                $(this).html( select );
898
                $(this).html( select );
901
            } else if (table_dt.settings()[0].aoColumns[i].sType == 'date' ) {
899
            } else if (table_dt.settings()[0].aoColumns[i].sType == 'date' ) {
902
                let existing_search = table_dt.column(i).search();
900
                let existing_search = table_dt.column(i).search();
903
                let input = $('<input type="text" class="flatpickr" style="width: 100%" />');
901
                let input = $('<input type="text" style="width: 100%" />');
904
                if (existing_search) {
902
                if (existing_search) {
905
                    input.prop("value", existing_search);
903
                    input.prop("value", existing_search);
906
                }
904
                }
Lines 936-945 function _dt_add_filters(table_node, table_dt, filters_options = {}) { Link Here
936
            $(this).html('');
934
            $(this).html('');
937
        }
935
        }
938
    } );
936
    } );
939
940
    $(".flatpickr").each(function(){
941
        apply_flatpickr(this);
942
    });
943
}
937
}
944
938
945
939
946
- 

Return to bug 34226