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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-4 / +4 lines)
Lines 387-393 Link Here
387
                        { // Hide the two date columns we use just for sorting
387
                        { // Hide the two date columns we use just for sorting
388
                            'aTargets': [ 'placed', 'updated' ],
388
                            'aTargets': [ 'placed', 'updated' ],
389
                            'bVisible': false,
389
                            'bVisible': false,
390
                            'bSearchable': false
390
                            'bSearchable': true
391
                        },
391
                        },
392
                        { // When sorting 'placed', we want to use the
392
                        { // When sorting 'placed', we want to use the
393
                          // unformatted column
393
                          // unformatted column
Lines 428-439 Link Here
428
428
429
                // Custom date range filtering
429
                // Custom date range filtering
430
                $.fn.dataTable.ext.search.push(function(settings, data, dataIndex) {
430
                $.fn.dataTable.ext.search.push(function(settings, data, dataIndex) {
431
                    console.log(data);
431
                    var placedStart = $('#illfilter_dateplaced_start').datepicker('getDate');
432
                    var placedStart = $('#illfilter_dateplaced_start').datepicker('getDate');
432
                    var placedEnd = $('#illfilter_dateplaced_end').datepicker('getDate');
433
                    var placedEnd = $('#illfilter_dateplaced_end').datepicker('getDate');
433
                    var modifiedStart = $('#illfilter_datemodified_start').datepicker('getDate');
434
                    var modifiedStart = $('#illfilter_datemodified_start').datepicker('getDate');
434
                    var modifiedEnd = $('#illfilter_datemodified_end').datepicker('getDate');
435
                    var modifiedEnd = $('#illfilter_datemodified_end').datepicker('getDate');
435
                    var rowPlaced = data[8] ? new Date(data[8]) : null;
436
                    var rowPlaced = data[7] ? new Date(data[7]) : null;
436
                    var rowModified = data[10] ? new Date(data[10]) : null;
437
                    var rowModified = data[9] ? new Date(data[9]) : null;
437
                    var placedPassed = true;
438
                    var placedPassed = true;
438
                    var modifiedPassed = true;
439
                    var modifiedPassed = true;
439
                    if (placedStart && rowPlaced && rowPlaced < placedStart) {
440
                    if (placedStart && rowPlaced && rowPlaced < placedStart) {
440
- 

Return to bug 20600