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

Return to bug 20600