File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed
resources/assets/js/advancedSearch Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -313,21 +313,29 @@ class DateFilterInput extends FilterInput {
313313 console . log ( "setdate" ) ;
314314 return new Promise ( ( resolve , reject ) => {
315315 try {
316- console . log ( newValue ) ;
316+ // console.log(newValue);
317317
318318 const $container = $ ( this . container ) ;
319319 const $startInput = $container . find ( 'input:first' ) ;
320320 const $endInput = $container . find ( 'input:last' ) ;
321+ console . log ( $startInput ) ;
322+ console . log ( $endInput ) ;
321323
322324 if ( newValue . startDate != undefined ) {
323325 // Set the value directly and update datepicker
324326 $startInput . val = newValue . startDate ;
327+ const d = document . getElementById ( $startInput [ 0 ] . id ) ;
328+ console . log ( d ) ;
329+ d . value = newValue . startDate ;
325330 $startInput . datepicker ( 'update' ) ;
326331 }
327332
328333 if ( newValue . endDate != undefined ) {
329334 // Set the value directly and update datepicker
330335 $endInput . val = newValue . endDate ;
336+ const d = document . getElementById ( $endInput [ 0 ] . id ) ;
337+ console . log ( d ) ;
338+ d . value = newValue . endDate ;
331339 $endInput . datepicker ( 'update' ) ;
332340 }
333341
Original file line number Diff line number Diff line change 3636 "/js/dist/floating-buttons.min.js" : " /js/dist/floating-buttons.min.js?id=bef97dca53c8ad4bda54f1009628a121" ,
3737 "/js/dist/apiService.js" : " /js/dist/apiService.js?id=4e838fdc8aaf6a0de54c69b1b84f9669" ,
3838 "/js/dist/apiService.min.js" : " /js/dist/apiService.min.js?id=4e838fdc8aaf6a0de54c69b1b84f9669" ,
39- "/js/dist/filterInputs.js" : " /js/dist/filterInputs.js?id=e7f09e05354a9af03667f24689db1c04 " ,
40- "/js/dist/filterInputs.min.js" : " /js/dist/filterInputs.min.js?id=e7f09e05354a9af03667f24689db1c04 " ,
39+ "/js/dist/filterInputs.js" : " /js/dist/filterInputs.js?id=c83ab5a407e0330c771572141d415bf4 " ,
40+ "/js/dist/filterInputs.min.js" : " /js/dist/filterInputs.min.js?id=c83ab5a407e0330c771572141d415bf4 " ,
4141 "/js/dist/filterFormManager.js" : " /js/dist/filterFormManager.js?id=b7bcaec0aa11dd5551ee3d8d4924f299" ,
4242 "/js/dist/filterFormManager.min.js" : " /js/dist/filterFormManager.min.js?id=b7bcaec0aa11dd5551ee3d8d4924f299" ,
4343 "/js/select2/i18n/af.js" : " /js/select2/i18n/af.js?id=4f6fcd73488ce79fae1b7a90aceaecde" ,
Original file line number Diff line number Diff line change @@ -313,21 +313,29 @@ class DateFilterInput extends FilterInput {
313313 console . log ( "setdate" ) ;
314314 return new Promise ( ( resolve , reject ) => {
315315 try {
316- console . log ( newValue ) ;
316+ // console.log(newValue);
317317
318318 const $container = $ ( this . container ) ;
319319 const $startInput = $container . find ( 'input:first' ) ;
320320 const $endInput = $container . find ( 'input:last' ) ;
321+ console . log ( $startInput ) ;
322+ console . log ( $endInput ) ;
321323
322324 if ( newValue . startDate != undefined ) {
323325 // Set the value directly and update datepicker
324326 $startInput . val = newValue . startDate ;
327+ const d = document . getElementById ( $startInput [ 0 ] . id ) ;
328+ console . log ( d ) ;
329+ d . value = newValue . startDate ;
325330 $startInput . datepicker ( 'update' ) ;
326331 }
327332
328333 if ( newValue . endDate != undefined ) {
329334 // Set the value directly and update datepicker
330335 $endInput . val = newValue . endDate ;
336+ const d = document . getElementById ( $endInput [ 0 ] . id ) ;
337+ console . log ( d ) ;
338+ d . value = newValue . endDate ;
331339 $endInput . datepicker ( 'update' ) ;
332340 }
333341
You can’t perform that action at this time.
0 commit comments