0.0.54 p search res

This commit is contained in:
SBD
2025-01-23 19:35:11 +03:00
parent da9dc4bb03
commit 15143188b7
6 changed files with 68 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ function daterangepickerInit(el, callback, date) {
$($datarangepicker).daterangepicker({
"autoapply": true,
"linkedCalendars": false,
"singleDatePicker": true,
"singleDatePicker": !!el.dataset.range,
"timePicker": false,
"timePicker24Hour": false,
"minDate": moment(date),
@@ -57,6 +57,7 @@ function daterangepickerInit(el, callback, date) {
if (last_opened_daterangepicker) $parent = last_opened_daterangepicker.closest('.w_daterangepicker');
let $input = $parent.querySelector(".date_range_input_cont input")
$input.value = start.format('DD.MM.YYYY');
if (end) $input.value = `${start.format('DD.MM.YYYY')} - ${end.format('DD.MM.YYYY')}`
resetFieldError(el);
if (callback) callback(el)
});
@@ -68,3 +69,6 @@ function clickOnDateIconE(el){
$input.focus()
}
$(document).ready(function () {
datarangepickerinitAll()
})