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 415-421 Link Here
415
                        { // Hide the two date columns we use just for sorting
415
                        { // Hide the two date columns we use just for sorting
416
                            'aTargets': [ 'placed', 'updated' ],
416
                            'aTargets': [ 'placed', 'updated' ],
417
                            'bVisible': false,
417
                            'bVisible': false,
418
                            'bSearchable': false
418
                            'bSearchable': true
419
                        },
419
                        },
420
                        { // When sorting 'placed', we want to use the
420
                        { // When sorting 'placed', we want to use the
421
                          // unformatted column
421
                          // unformatted column
Lines 456-467 Link Here
456
456
457
                // Custom date range filtering
457
                // Custom date range filtering
458
                $.fn.dataTable.ext.search.push(function(settings, data, dataIndex) {
458
                $.fn.dataTable.ext.search.push(function(settings, data, dataIndex) {
459
                    console.log(data);
459
                    var placedStart = $('#illfilter_dateplaced_start').datepicker('getDate');
460
                    var placedStart = $('#illfilter_dateplaced_start').datepicker('getDate');
460
                    var placedEnd = $('#illfilter_dateplaced_end').datepicker('getDate');
461
                    var placedEnd = $('#illfilter_dateplaced_end').datepicker('getDate');
461
                    var modifiedStart = $('#illfilter_datemodified_start').datepicker('getDate');
462
                    var modifiedStart = $('#illfilter_datemodified_start').datepicker('getDate');
462
                    var modifiedEnd = $('#illfilter_datemodified_end').datepicker('getDate');
463
                    var modifiedEnd = $('#illfilter_datemodified_end').datepicker('getDate');
463
                    var rowPlaced = data[8] ? new Date(data[8]) : null;
464
                    var rowPlaced = data[7] ? new Date(data[7]) : null;
464
                    var rowModified = data[10] ? new Date(data[10]) : null;
465
                    var rowModified = data[9] ? new Date(data[9]) : null;
465
                    var placedPassed = true;
466
                    var placedPassed = true;
466
                    var modifiedPassed = true;
467
                    var modifiedPassed = true;
467
                    if (placedStart && rowPlaced && rowPlaced < placedStart) {
468
                    if (placedStart && rowPlaced && rowPlaced < placedStart) {
468
- 

Return to bug 20600