Lines 335-340
$(document).ready(function() {
Link Here
|
335 |
$('#addcomment').toggleClass('content_hidden'); |
335 |
$('#addcomment').toggleClass('content_hidden'); |
336 |
}); |
336 |
}); |
337 |
|
337 |
|
|
|
338 |
var illfilter_dateplaced_start = $("#illfilter_dateplaced_start").flatpickr({ |
339 |
onClose: function( selectedDates, dateText, instance) { |
340 |
validate_date( selectedDates, instance ); |
341 |
illfilter_dateplaced_end.set('minDate', selectedDates[0]); |
342 |
} |
343 |
}); |
344 |
|
345 |
var illfilter_dateplaced_end = $("#illfilter_dateplaced_end").flatpickr({ |
346 |
onClose: function( selectedDates, dateText, instance) { |
347 |
validate_date( selectedDates, instance ); |
348 |
}, |
349 |
}); |
350 |
|
351 |
var illfilter_datemodified_start = $("#illfilter_datemodified_start").flatpickr({ |
352 |
onClose: function( selectedDates, dateText, instance) { |
353 |
validate_date( selectedDates, instance ); |
354 |
illfilter_datemodified_end.set('minDate', selectedDates[0]); |
355 |
} |
356 |
}); |
357 |
|
358 |
var illfilter_datemodified_end = $("#illfilter_datemodified_end").flatpickr({ |
359 |
onClose: function( selectedDates, dateText, instance) { |
360 |
validate_date( selectedDates, instance ); |
361 |
}, |
362 |
}); |
363 |
|
338 |
// Filter partner list |
364 |
// Filter partner list |
339 |
// Record the list of all options |
365 |
// Record the list of all options |
340 |
var ill_partner_options = $('#partners > option'); |
366 |
var ill_partner_options = $('#partners > option'); |
Lines 498-507
$(document).ready(function() {
Link Here
|
498 |
|
524 |
|
499 |
// Custom date range filtering |
525 |
// Custom date range filtering |
500 |
$.fn.dataTable.ext.search.push(function(settings, data, dataIndex) { |
526 |
$.fn.dataTable.ext.search.push(function(settings, data, dataIndex) { |
501 |
var placedStart = $('#illfilter_dateplaced_start').datepicker('getDate'); |
527 |
var placedStart = illfilter_dateplaced_start.selectedDates[0]; |
502 |
var placedEnd = $('#illfilter_dateplaced_end').datepicker('getDate'); |
528 |
var placedEnd = illfilter_dateplaced_end.selectedDates[0]; |
503 |
var modifiedStart = $('#illfilter_datemodified_start').datepicker('getDate'); |
529 |
var modifiedStart = illfilter_datemodified_start.selectedDates[0]; |
504 |
var modifiedEnd = $('#illfilter_datemodified_end').datepicker('getDate'); |
530 |
var modifiedEnd = illfilter_datemodified_end.selectedDates[0]; |
505 |
var rowPlaced = data[14] ? new Date(data[14]) : null; |
531 |
var rowPlaced = data[14] ? new Date(data[14]) : null; |
506 |
var rowModified = data[16] ? new Date(data[16]) : null; |
532 |
var rowModified = data[16] ? new Date(data[16]) : null; |
507 |
var placedPassed = true; |
533 |
var placedPassed = true; |
508 |
- |
|
|