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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt (-8 / +2 lines)
Lines 212-223 Link Here
212
212
213
            const additional_filters = AdditionalFilters.init(["filter-expired", "filter-cancelled"])
213
            const additional_filters = AdditionalFilters.init(["filter-expired", "filter-cancelled"])
214
                .onChange((filters, { anyFiltersNotApplied }) => {
214
                .onChange((filters, { anyFiltersNotApplied }) => {
215
                    bookings_table.DataTable().ajax.reload(() => {
215
                    bookings_table.DataTable().ajax.reload();
216
                        bookings_table
217
                            .DataTable()
218
                            .column("status:name")
219
                            .visible(anyFiltersNotApplied, false);
220
                    });
221
                })
216
                })
222
                .build({
217
                .build({
223
                    end_date: ({ filters, isNotApplied }) => {
218
                    end_date: ({ filters, isNotApplied }) => {
Lines 258-264 Link Here
258
                    name: "status",
253
                    name: "status",
259
                    searchable: false,
254
                    searchable: false,
260
                    orderable: false,
255
                    orderable: false,
261
                    visible: false,
256
                    visible: true,
262
                    render: function (data, type, row, meta) {
257
                    render: function (data, type, row, meta) {
263
                        const isExpired = date => dayjs(date).isBefore(new Date());
258
                        const isExpired = date => dayjs(date).isBefore(new Date());
264
                        const isActive = (startDate, endDate) => {
259
                        const isActive = (startDate, endDate) => {
265
- 

Return to bug 40656